@@ -40,6 +40,18 @@ rules:
40
40
- get
41
41
- list
42
42
- watch
43
+ - apiGroups:
44
+ - authentication.k8s.io
45
+ resources:
46
+ - tokenreviews
47
+ verbs:
48
+ - create
49
+ - apiGroups:
50
+ - authorization.k8s.io
51
+ resources:
52
+ - subjectaccessreviews
53
+ verbs:
54
+ - create
43
55
- apiGroups:
44
56
- lib.projectsveltos.io
45
57
resources:
@@ -76,34 +88,6 @@ rules:
76
88
- update
77
89
---
78
90
apiVersion: rbac.authorization.k8s.io/v1
79
- kind: ClusterRole
80
- metadata:
81
- name: drift-detection-metrics-reader
82
- rules:
83
- - nonResourceURLs:
84
- - /metrics
85
- verbs:
86
- - get
87
- ---
88
- apiVersion: rbac.authorization.k8s.io/v1
89
- kind: ClusterRole
90
- metadata:
91
- name: drift-detection-proxy-role
92
- rules:
93
- - apiGroups:
94
- - authentication.k8s.io
95
- resources:
96
- - tokenreviews
97
- verbs:
98
- - create
99
- - apiGroups:
100
- - authorization.k8s.io
101
- resources:
102
- - subjectaccessreviews
103
- verbs:
104
- - create
105
- ---
106
- apiVersion: rbac.authorization.k8s.io/v1
107
91
kind: ClusterRoleBinding
108
92
metadata:
109
93
name: drift-detection-manager-rolebinding
@@ -116,35 +100,6 @@ subjects:
116
100
name: drift-detection-manager
117
101
namespace: projectsveltos
118
102
---
119
- apiVersion: rbac.authorization.k8s.io/v1
120
- kind: ClusterRoleBinding
121
- metadata:
122
- name: drift-detection-proxy-rolebinding
123
- roleRef:
124
- apiGroup: rbac.authorization.k8s.io
125
- kind: ClusterRole
126
- name: drift-detection-proxy-role
127
- subjects:
128
- - kind: ServiceAccount
129
- name: drift-detection-manager
130
- namespace: projectsveltos
131
- ---
132
- apiVersion: v1
133
- kind: Service
134
- metadata:
135
- labels:
136
- control-plane: drift-detection-manager
137
- name: drift-detection-manager-metrics-service
138
- namespace: projectsveltos
139
- spec:
140
- ports:
141
- - name: https
142
- port: 8443
143
- protocol: TCP
144
- targetPort: https
145
- selector:
146
- control-plane: drift-detection-manager
147
- ---
148
103
apiVersion: apps/v1
149
104
kind: Deployment
150
105
metadata:
@@ -166,8 +121,7 @@ spec:
166
121
spec:
167
122
containers:
168
123
- args:
169
- - --health-probe-bind-address=:8081
170
- - --metrics-bind-address=127.0.0.1:8080
124
+ - --diagnostics-address=:8443
171
125
- --v=5
172
126
- --cluster-namespace=
173
127
- --cluster-name=
@@ -176,18 +130,29 @@ spec:
176
130
- --run-mode=do-not-send-updates
177
131
command:
178
132
- /manager
179
- image: projectsveltos/drift-detection-manager-amd64:v0.24.0
133
+ image: projectsveltos/drift-detection-manager-amd64:dev
180
134
livenessProbe:
135
+ failureThreshold: 3
181
136
httpGet:
182
137
path: /healthz
183
- port: 8081
138
+ port: healthz
139
+ scheme: HTTP
184
140
initialDelaySeconds: 15
185
141
periodSeconds: 20
186
142
name: manager
143
+ ports:
144
+ - containerPort: 8443
145
+ name: metrics
146
+ protocol: TCP
147
+ - containerPort: 9440
148
+ name: healthz
149
+ protocol: TCP
187
150
readinessProbe:
151
+ failureThreshold: 3
188
152
httpGet:
189
153
path: /readyz
190
- port: 8081
154
+ port: healthz
155
+ scheme: HTTP
191
156
initialDelaySeconds: 5
192
157
periodSeconds: 10
193
158
resources:
@@ -202,29 +167,6 @@ spec:
202
167
capabilities:
203
168
drop:
204
169
- ALL
205
- - args:
206
- - --secure-listen-address=0.0.0.0:8443
207
- - --upstream=http://127.0.0.1:8080/
208
- - --logtostderr=true
209
- - --v=0
210
- image: gcr.io/kubebuilder/kube-rbac-proxy:v0.12.0
211
- name: kube-rbac-proxy
212
- ports:
213
- - containerPort: 8443
214
- name: https
215
- protocol: TCP
216
- resources:
217
- limits:
218
- cpu: 500m
219
- memory: 128Mi
220
- requests:
221
- cpu: 5m
222
- memory: 64Mi
223
- securityContext:
224
- allowPrivilegeEscalation: false
225
- capabilities:
226
- drop:
227
- - ALL
228
170
securityContext:
229
171
runAsNonRoot: true
230
172
serviceAccountName: drift-detection-manager
0 commit comments