forked from projectsveltos/addon-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrift-detection-manager.yaml
More file actions
183 lines (183 loc) · 3.65 KB
/
Copy pathdrift-detection-manager.yaml
File metadata and controls
183 lines (183 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
apiVersion: v1
kind: Namespace
metadata:
name: projectsveltos
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: drift-detection-manager
namespace: projectsveltos
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: drift-detection-manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- events.k8s.io
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- lib.projectsveltos.io
resources:
- debuggingconfigurations
verbs:
- get
- list
- watch
- apiGroups:
- lib.projectsveltos.io
resources:
- resourcesummaries
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- lib.projectsveltos.io
resources:
- resourcesummaries/finalizers
verbs:
- update
- apiGroups:
- lib.projectsveltos.io
resources:
- resourcesummaries/status
verbs:
- get
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: drift-detection-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: drift-detection-manager-role
subjects:
- kind: ServiceAccount
name: drift-detection-manager
namespace: projectsveltos
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: drift-detection-manager
name: drift-detection-manager
namespace: projectsveltos
spec:
replicas: 1
selector:
matchLabels:
control-plane: drift-detection-manager
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: drift-detection-manager
spec:
containers:
- args:
- --diagnostics-address=:8443
- --v=5
- --cluster-namespace=
- --cluster-name=
- --cluster-type=
- --current-cluster=managed-cluster
- --run-mode=do-not-send-updates
- --version=main
command:
- /manager
env:
- name: TOTAL_MEMORY_LIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
image: docker.io/projectsveltos/drift-detection-manager@sha256:8bb5b9ba6ed65d1cc986e1ed75ea85817a5f94438a0dbf2b0592a3df4d926adf
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: healthz
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 20
name: manager
ports:
- containerPort: 8443
name: metrics
protocol: TCP
- containerPort: 9440
name: healthz
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /readyz
port: healthz
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
securityContext:
runAsNonRoot: true
serviceAccountName: drift-detection-manager
terminationGracePeriodSeconds: 10