Skip to content

Commit

Permalink
added service account
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeevan-Darapu authored and Jeevan-Darapu committed Feb 9, 2025
1 parent 377c77b commit 5683bfe
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion playbooks/roles/ocp-cluster-logging/files/clusterlogging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@
service.beta.openshift.io/inject-cabundle: "true"
when: clo_version | float >= 5.9

# Create Service Account
- name: Create Service Account
shell: |
oc create sa logcollector -n openshift-logging
oc adm policy add-cluster-role-to-user collect-application-logs -z logcollector -n openshift-logging
oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z logcollector -n openshift-logging
oc adm policy add-cluster-role-to-user collect-audit-logs -z logcollector -n openshift-logging
# Create a Role binding for lokistack
- name: Create Cluster Role for lokistack
k8s:
Expand Down Expand Up @@ -186,6 +194,9 @@
size: 1x.demo
replicationFactor: 1
storage:
schemas:
- effectiveDate: "2023-10-15"
version: v13
secret:
name: lokicred-secret
type: s3
Expand All @@ -202,7 +213,6 @@
openshift.io/cluster-monitoring: 'true'
when: clo_version | float >= 6.0


# Create a loki log forwarder
- name: Create loki logforwarder
k8s:
Expand Down

0 comments on commit 5683bfe

Please sign in to comment.