-
Notifications
You must be signed in to change notification settings - Fork 47
/
csi_controller_deployment.yaml
59 lines (59 loc) · 1.72 KB
/
csi_controller_deployment.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
kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-snapshot-controller
namespace: openshift-cluster-storage-operator
spec:
serviceName: "csi-snapshot-controller"
selector:
matchLabels:
app: csi-snapshot-controller
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
template:
metadata:
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: csi-snapshot-controller
spec:
serviceAccount: csi-snapshot-controller
containers:
- name: snapshot-controller
image: quay.io/k8scsi/snapshot-controller:v2.2.0-rc1
args:
- "--v=5"
- "--leader-election=true"
imagePullPolicy: IfNotPresent
resources:
requests:
# TODO: measure on a real cluster
cpu: 10m
memory: 50Mi
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app: csi-snapshot-controller
topologyKey: kubernetes.io/hostname
priorityClassName: "system-cluster-critical"
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 120
- key: node-role.kubernetes.io/master
operator: Exists
effect: "NoSchedule"