|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + name: yc-csi-controller |
| 5 | + labels: |
| 6 | + app: yc-csi-controller |
| 7 | + component: csi-controller |
| 8 | + tier: csi |
| 9 | + namespace: kube-system |
| 10 | +spec: |
| 11 | + replicas: 1 |
| 12 | + selector: |
| 13 | + matchLabels: |
| 14 | + app: yc-csi-controller |
| 15 | + template: |
| 16 | + metadata: |
| 17 | + labels: |
| 18 | + app: yc-csi-controller |
| 19 | + spec: |
| 20 | + serviceAccountName: yc-csi-controller |
| 21 | + containers: |
| 22 | + - name: yc-csi-controller |
| 23 | + args: |
| 24 | + - --endpoint=$(ENDPOINT) |
| 25 | + - --folder-id=$(FOLDER_ID) |
| 26 | + - --logtostderr=true |
| 27 | + - --sa-key=$(SA_KEY) |
| 28 | + - --yc-api-endpoint=api.cloud.yandex.net:443 |
| 29 | + env: |
| 30 | + - name: ENDPOINT |
| 31 | + value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock |
| 32 | + - name: FOLDER_ID |
| 33 | + valueFrom: |
| 34 | + configMapKeyRef: |
| 35 | + name: yc-csi-config |
| 36 | + key: folderId |
| 37 | + - name: SA_KEY |
| 38 | + value: /etc/yc-disk-csi-driver/sa-key.json |
| 39 | + image: cr.yandex/crpsjg1coh47p81vh2lc/yc-csi-controller:v1.2.0 |
| 40 | + resources: {} |
| 41 | + volumeMounts: |
| 42 | + - name: sa-key |
| 43 | + mountPath: "/etc/yc-disk-csi-driver" |
| 44 | + readOnly: true |
| 45 | + - name: socket-dir |
| 46 | + mountPath: /var/lib/csi/sockets/pluginproxy |
| 47 | + - name: log-directory |
| 48 | + mountPath: /var/log |
| 49 | + - name: csi-provisioner |
| 50 | + args: |
| 51 | + - --csi-address=$(ADDRESS) |
| 52 | + - --feature-gates=Topology=true |
| 53 | + - --leader-election-namespace=kube-system |
| 54 | + - --leader-election=true |
| 55 | + - --retry-interval-max=15s |
| 56 | + - --timeout=30s |
| 57 | + - --v=5 |
| 58 | + env: |
| 59 | + - name: ADDRESS |
| 60 | + value: /var/lib/csi/sockets/pluginproxy/csi.sock |
| 61 | + image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0 |
| 62 | + resources: {} |
| 63 | + volumeMounts: |
| 64 | + - mountPath: /var/lib/csi/sockets/pluginproxy |
| 65 | + name: socket-dir |
| 66 | + - mountPath: /var/log |
| 67 | + name: log-directory |
| 68 | + - name: csi-attacher |
| 69 | + command: |
| 70 | + - /csi-attacher |
| 71 | + - --csi-address=$(ADDRESS) |
| 72 | + - --leader-election-namespace=kube-system |
| 73 | + - --leader-election=true |
| 74 | + - --retry-interval-max=15s |
| 75 | + - --timeout=30s |
| 76 | + - --v=5 |
| 77 | + env: |
| 78 | + - name: ADDRESS |
| 79 | + value: /var/lib/csi/sockets/pluginproxy/csi.sock |
| 80 | + image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1 |
| 81 | + resources: {} |
| 82 | + volumeMounts: |
| 83 | + - mountPath: /var/lib/csi/sockets/pluginproxy |
| 84 | + name: socket-dir |
| 85 | + - mountPath: /var/log |
| 86 | + name: log-directory |
| 87 | + - name: csi-liveness-probe |
| 88 | + command: |
| 89 | + - /livenessprobe |
| 90 | + - --csi-address=$(ADDRESS) |
| 91 | + - --health-port=9809 |
| 92 | + - --v=5 |
| 93 | + env: |
| 94 | + - name: ADDRESS |
| 95 | + value: /var/lib/csi/sockets/pluginproxy/csi.sock |
| 96 | + image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0 |
| 97 | + resources: {} |
| 98 | + volumeMounts: |
| 99 | + - mountPath: /var/lib/csi/sockets/pluginproxy |
| 100 | + name: socket-dir |
| 101 | + - mountPath: /var/log |
| 102 | + name: log-directory |
| 103 | + - name: csi-resizer |
| 104 | + command: |
| 105 | + - /csi-resizer |
| 106 | + - --csi-address=$(ADDRESS) |
| 107 | + - --leader-election-namespace=kube-system |
| 108 | + - --leader-election=true |
| 109 | + - --retry-interval-max=15s |
| 110 | + - --timeout=30s |
| 111 | + - --v=5 |
| 112 | + env: |
| 113 | + - name: ADDRESS |
| 114 | + value: /var/lib/csi/sockets/pluginproxy/csi.sock |
| 115 | + image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2 |
| 116 | + volumeMounts: |
| 117 | + - mountPath: /var/lib/csi/sockets/pluginproxy |
| 118 | + name: socket-dir |
| 119 | + - mountPath: /var/log |
| 120 | + name: log-directory |
| 121 | + hostNetwork: true |
| 122 | + priorityClassName: system-cluster-critical |
| 123 | + volumes: |
| 124 | + - name: socket-dir |
| 125 | + emptyDir: {} |
| 126 | + - name: log-directory |
| 127 | + hostPath: |
| 128 | + path: /var/log |
| 129 | + type: DirectoryOrCreate |
| 130 | + - name: sa-key |
| 131 | + secret: |
| 132 | + secretName: yc-csi-sa-key |
| 133 | + items: |
| 134 | + - key: sa-key.json |
| 135 | + path: sa-key.json |
0 commit comments