Skip to content

Commit

Permalink
adding yaml file for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PravinRanjan10 committed Sep 13, 2021
1 parent c79fd59 commit b112211
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions yamls/deploy/huawei-csi-controller-probe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: huawei-csi-controller
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: huawei-csi-controller
template:
metadata:
labels:
app: huawei-csi-controller
spec:
serviceAccount: huawei-csi-controller
hostNetwork: true
containers:
- name: liveness-probe
image: quay.io/k8scsi/livenessprobe:v1.1.0
args:
- --csi-address=/var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir

- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.6.0
args:
- "--csi-address=$(ADDRESS)"
- "--timeout=6h"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/

- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v1.2.1
args:
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/

- name: huawei-csi-driver
image: huawei-csi:pravin-test
args:
- "--endpoint=$(CSI_ENDPOINT)"
- "--controller"
- "--containerized"
- "--driver-name=csi.huawei.com"
env:
- name: CSI_ENDPOINT
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 9808
name: healthz
protocol: TCP
# The probe
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 10
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: log
mountPath: /var/log
- name: config-map
mountPath: /etc/huawei
- name: secret
mountPath: /etc/huawei/secret
volumes:
- name: socket-dir
emptyDir:
- name: log
hostPath:
path: /var/log/
type: Directory
- name: config-map
configMap:
name: huawei-csi-configmap
- name: secret
secret:
secretName: huawei-csi-secret

0 comments on commit b112211

Please sign in to comment.