Skip to content

Commit 79332a9

Browse files
author
charlyF
committed
finalizing 201-datadog
1 parent 925f4ee commit 79332a9

21 files changed

+123
-83
lines changed

02-path-working-with-clusters/201-cluster-monitoring/readme.adoc

Lines changed: 89 additions & 80 deletions
Large diffs are not rendered by default.

02-path-working-with-clusters/201-cluster-monitoring/templates/mongodb/mongodb.yaml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
role: mongo
3131
environment: test
3232
spec:
33-
serviceAccountName: dca
33+
serviceAccountName: mongorbac
3434
terminationGracePeriodSeconds: 10
3535
containers:
3636
- name: mongo
@@ -62,4 +62,36 @@ spec:
6262
accessModes: [ "ReadWriteOnce" ]
6363
resources:
6464
requests:
65-
storage: 1Gi
65+
storage: 1Gi
66+
---
67+
kind: ClusterRole
68+
apiVersion: rbac.authorization.k8s.io/v1
69+
metadata:
70+
name: mongorbac
71+
rules:
72+
- apiGroups:
73+
- ""
74+
resources:
75+
- pods
76+
verbs:
77+
- get
78+
- list
79+
---
80+
apiVersion: rbac.authorization.k8s.io/v1
81+
kind: ClusterRoleBinding
82+
metadata:
83+
name: mongorbac
84+
roleRef:
85+
apiGroup: rbac.authorization.k8s.io
86+
kind: ClusterRole
87+
name: mongorbac
88+
subjects:
89+
- kind: ServiceAccount
90+
name: mongorbac
91+
namespace: default
92+
---
93+
kind: ServiceAccount
94+
apiVersion: v1
95+
metadata:
96+
name: mongorbac
97+
namespace: default

02-path-working-with-clusters/201-cluster-monitoring/templates/nginx/nginx.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: DaemonSet
33
metadata:
44
name: nginx
55
spec:
6-
#replicas: 2 # tells deployment to run 2 pods matching the template
76
template: # create pods using pod definition in this template
87
metadata:
98
annotations:

resources/images/datadog-logo.png

36.8 KB
Loading
Binary file not shown.
-320 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)