rawfile-localpv/deploy/01-controller-plugin.yaml

50 lines
1.3 KiB
YAML

kind: Deployment
apiVersion: apps/v1
metadata:
name: rawfile-csi-controller
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: rawfile-csi-controller
template:
metadata:
labels:
app: rawfile-csi-controller
spec:
serviceAccount: rawfile-csi-controller
priorityClassName: system-cluster-critical
tolerations:
- key: "node-role.kubernetes.io/master"
operator: Equal
value: "true"
effect: NoSchedule
volumes:
- name: socket-dir
emptyDir: {}
containers:
- name: csi-driver
image: registry.hamdocker.ir/hamravesh/rawfile-csi:master
imagePullPolicy: Always
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.6.0
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
- "--feature-gates=Topology=true"
- "--strict-topology"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi