-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROX-13092: Add openshift eventrouter to persist kubernetes events to …
…CloudWatch (#911)
- Loading branch information
1 parent
4e323bb
commit c2229e0
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
dp-terraform/helm/rhacs-terraform/charts/logging/templates/02-eventrouter-01-rbac.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,27 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: eventrouter | ||
namespace: openshift-logging | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: event-reader | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["events"] | ||
verbs: ["get", "watch", "list"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: event-reader-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: eventrouter | ||
namespace: openshift-logging | ||
roleRef: | ||
aoiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: event-reader |
10 changes: 10 additions & 0 deletions
10
dp-terraform/helm/rhacs-terraform/charts/logging/templates/02-eventrouter-02-configmap.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: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: eventrouter | ||
namespace: openshift-logging | ||
data: | ||
config.json: |- | ||
{ | ||
"sink": "stdout" | ||
} |
39 changes: 39 additions & 0 deletions
39
dp-terraform/helm/rhacs-terraform/charts/logging/templates/02-eventrouter-03-deployment.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,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: eventrouter | ||
namespace: openshift-logging | ||
labels: | ||
component: "eventrouter" | ||
logging-infra: "eventrouter" | ||
provider: "openshift" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
component: "eventrouter" | ||
logging-infra: "eventrouter" | ||
provider: "openshift" | ||
template: | ||
metadata: | ||
labels: | ||
component: "eventrouter" | ||
logging-infra: "eventrouter" | ||
provider: "openshift" | ||
name: eventrouter | ||
spec: | ||
serviceAccount: eventrouter | ||
containers: | ||
- name: kube-eventrouter | ||
image: "registry.redhat.io/openshift-logging/eventrouter-rhel8:v0.4" | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "128Mi" | ||
volumeMounts: | ||
- name: config-volume | ||
mountPath: /etc/eventrouter | ||
volumes: | ||
- name: config-volume | ||
configMap: | ||
name: eventrouter |