-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KFLUXBUGS-1610 - Hold Logging Operator back on Prod
- Loading branch information
1 parent
6ccdf6d
commit 94853f2
Showing
11 changed files
with
164 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...onents/monitoring/logging/production/base/configure-logging/configure-log-collectors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
apiVersion: "logging.openshift.io/v1" | ||
kind: "ClusterLogging" | ||
metadata: | ||
name: "instance" | ||
annotations: | ||
logging.openshift.io/preview-vector-collector: enabled | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "2" | ||
spec: | ||
collection: | ||
type: vector |
34 changes: 34 additions & 0 deletions
34
components/monitoring/logging/production/base/configure-logging/configure-logforwarder.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
apiVersion: logging.openshift.io/v1 | ||
kind: ClusterLogForwarder | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "1" | ||
name: instance | ||
spec: | ||
outputs: | ||
- name: splunk-receiver-application | ||
secret: | ||
name: log-forwarder-splunk-rhtap-application-secret | ||
type: splunk | ||
url: https://http-inputs-rhcorporate.splunkcloud.com | ||
- name: splunk-receiver-audit | ||
secret: | ||
name: log-forwarder-splunk-rhtap-audit-secret | ||
type: splunk | ||
url: https://http-inputs-rhcorporate.splunkcloud.com | ||
pipelines: | ||
- name: fluentd-forward-logs-to-splunk-rhtap-app-index | ||
inputRefs: | ||
- application | ||
outputRefs: | ||
- splunk-receiver-application | ||
parse: json | ||
- name: fluentd-forward-logs-to-splunk-rhtap-audit-index | ||
inputRefs: | ||
- infrastructure | ||
- audit | ||
outputRefs: | ||
- splunk-receiver-audit | ||
parse: json |
10 changes: 10 additions & 0 deletions
10
components/monitoring/logging/production/base/configure-logging/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- configure-log-collectors.yaml | ||
- configure-logforwarder.yaml | ||
|
||
namespace: "openshift-logging" | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true |
5 changes: 5 additions & 0 deletions
5
components/monitoring/logging/production/base/external-secrets/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- splunk-log-forwarder-external-secrets.yaml | ||
namespace: openshift-logging |
37 changes: 37 additions & 0 deletions
37
...oring/logging/production/base/external-secrets/splunk-log-forwarder-external-secrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: log-forwarder-splunk-rhtap-application-external-secret | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "-1" | ||
spec: | ||
dataFrom: | ||
- extract: | ||
key: "" # will be added by the overlays | ||
refreshInterval: 1h | ||
secretStoreRef: | ||
name: appsre-stonesoup-vault | ||
kind: ClusterSecretStore | ||
target: | ||
name: log-forwarder-splunk-rhtap-application-secret | ||
deletionPolicy: Delete | ||
--- | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: log-forwarder-splunk-rhtap-audit-external-secret | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "-1" | ||
spec: | ||
dataFrom: | ||
- extract: | ||
key: "" # will be added by the overlays | ||
refreshInterval: 1h | ||
secretStoreRef: | ||
name: appsre-stonesoup-vault | ||
kind: ClusterSecretStore | ||
target: | ||
name: log-forwarder-splunk-rhtap-audit-secret | ||
deletionPolicy: Delete |
15 changes: 15 additions & 0 deletions
15
components/monitoring/logging/production/base/install-logging-operator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# On managed clusters, there is no need to create the openshift-logging | ||
# namespace because it's created automatically by hive. | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: cluster-logging | ||
namespace: openshift-logging | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "0" | ||
spec: | ||
channel: "stable" | ||
name: cluster-logging | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...nents/monitoring/logging/production/base/logging-operator-prerequisite/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- operatorgroup.yaml |
10 changes: 10 additions & 0 deletions
10
...nents/monitoring/logging/production/base/logging-operator-prerequisite/operatorgroup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: cluster-logging | ||
namespace: openshift-logging | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "0" | ||
spec: | ||
targetNamespaces: | ||
- openshift-logging |
4 changes: 4 additions & 0 deletions
4
components/monitoring/logging/production/base/rbac/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- logging-admin.yaml |
24 changes: 24 additions & 0 deletions
24
components/monitoring/logging/production/base/rbac/logging-admin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: all-access-openshift-logging | ||
namespace: openshift-logging | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["*"] | ||
verbs: ["*"] | ||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: all-access-openshift-logging | ||
namespace: openshift-logging | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: Group | ||
name: konflux-o11y-admins | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: all-access-openshift-logging |