Skip to content

Commit b112211

Browse files
adding yaml file for deployment
1 parent c79fd59 commit b112211

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
kind: Deployment
3+
apiVersion: apps/v1
4+
metadata:
5+
name: huawei-csi-controller
6+
namespace: kube-system
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app: huawei-csi-controller
12+
template:
13+
metadata:
14+
labels:
15+
app: huawei-csi-controller
16+
spec:
17+
serviceAccount: huawei-csi-controller
18+
hostNetwork: true
19+
containers:
20+
- name: liveness-probe
21+
image: quay.io/k8scsi/livenessprobe:v1.1.0
22+
args:
23+
- --csi-address=/var/lib/csi/sockets/pluginproxy/csi.sock
24+
imagePullPolicy: "IfNotPresent"
25+
volumeMounts:
26+
- mountPath: /var/lib/csi/sockets/pluginproxy/
27+
name: socket-dir
28+
29+
- name: csi-provisioner
30+
image: quay.io/k8scsi/csi-provisioner:v1.6.0
31+
args:
32+
- "--csi-address=$(ADDRESS)"
33+
- "--timeout=6h"
34+
env:
35+
- name: ADDRESS
36+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
37+
imagePullPolicy: "IfNotPresent"
38+
volumeMounts:
39+
- name: socket-dir
40+
mountPath: /var/lib/csi/sockets/pluginproxy/
41+
42+
- name: csi-attacher
43+
image: quay.io/k8scsi/csi-attacher:v1.2.1
44+
args:
45+
- "--csi-address=$(ADDRESS)"
46+
env:
47+
- name: ADDRESS
48+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
49+
imagePullPolicy: "IfNotPresent"
50+
volumeMounts:
51+
- name: socket-dir
52+
mountPath: /var/lib/csi/sockets/pluginproxy/
53+
54+
- name: huawei-csi-driver
55+
image: huawei-csi:pravin-test
56+
args:
57+
- "--endpoint=$(CSI_ENDPOINT)"
58+
- "--controller"
59+
- "--containerized"
60+
- "--driver-name=csi.huawei.com"
61+
env:
62+
- name: CSI_ENDPOINT
63+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
64+
imagePullPolicy: "IfNotPresent"
65+
ports:
66+
- containerPort: 9808
67+
name: healthz
68+
protocol: TCP
69+
# The probe
70+
livenessProbe:
71+
failureThreshold: 5
72+
httpGet:
73+
path: /healthz
74+
port: healthz
75+
initialDelaySeconds: 10
76+
timeoutSeconds: 3
77+
periodSeconds: 10
78+
volumeMounts:
79+
- name: socket-dir
80+
mountPath: /var/lib/csi/sockets/pluginproxy/
81+
- name: log
82+
mountPath: /var/log
83+
- name: config-map
84+
mountPath: /etc/huawei
85+
- name: secret
86+
mountPath: /etc/huawei/secret
87+
volumes:
88+
- name: socket-dir
89+
emptyDir:
90+
- name: log
91+
hostPath:
92+
path: /var/log/
93+
type: Directory
94+
- name: config-map
95+
configMap:
96+
name: huawei-csi-configmap
97+
- name: secret
98+
secret:
99+
secretName: huawei-csi-secret

0 commit comments

Comments
 (0)