Skip to content

Commit

Permalink
Modify log forwarder
Browse files Browse the repository at this point in the history
  • Loading branch information
bnshr committed Nov 28, 2023
1 parent f05995b commit 635820b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 44 deletions.
8 changes: 6 additions & 2 deletions logging/base/clusterlogforwarders/instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ metadata:
name: instance
namespace: openshift-logging
spec:
outputs:
- name: remoteloki
type: loki
url: https://logging-loki-openshift-logging.apps.nerc-ocp-obs.rc.fas.harvard.edu/api/logs/v1/application
pipelines:
- name: all-to-default
- name: all-to-loki
inputRefs:
- infrastructure
- application
- audit
outputRefs:
- default
- remoteloki
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: openshift-logging-lokistack-gateway-bearer-token
namespace: openshift-logging
spec:
dataFrom:
- extract:
# Command to extract the JSON pull secret: oc extract secret/pull-secret -n openshift-config --to=-
key: nerc/nerc-ocp-obs/lokistack-gateway-bearer-token
8 changes: 8 additions & 0 deletions logging/overlays/nerc-ocp-obs/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- path: externalsecrets/openshift-logging-lokistack-gateway-bearer-token_patch.yaml

This file was deleted.

1 change: 0 additions & 1 deletion logging/overlays/nerc-ocp-prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ resources:

patchesStrategicMerge:
- externalsecrets/openshift-logging-lokistack-gateway-bearer-token_patch.yaml
- clusterlogforwarders/instance_patch.yaml

0 comments on commit 635820b

Please sign in to comment.