/
manager.yaml
77 lines (77 loc) · 2.03 KB
/
manager.yaml
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
labels:
control-plane: capg-controller-manager
spec:
selector:
matchLabels:
control-plane: capg-controller-manager
replicas: 1
template:
metadata:
labels:
control-plane: capg-controller-manager
annotations:
kubectl.kubernetes.io/default-container: manager
spec:
containers:
- args:
- --leader-elect
- --feature-gates=GKE=${EXP_CAPG_GKE:=false}
- "--diagnostics-address=${CAPG_DIAGNOSTICS_ADDRESS:=:8443}"
- "--insecure-diagnostics=${CAPG_INSECURE_DIAGNOSTICS:=false}"
- "--v=${CAPG_LOGLEVEL:=0}"
image: controller:latest
imagePullPolicy: IfNotPresent
name: manager
ports:
- containerPort: 9440
name: healthz
protocol: TCP
- containerPort: 8443
name: metrics
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: healthz
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
periodSeconds: 10
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsUser: 65532
runAsGroup: 65532
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
terminationGracePeriodSeconds: 10
serviceAccountName: manager
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane