@ -1,24 +1,23 @@
---
kind : Deployment
apiVersion : apps/v1
apiVersion : apps/v1
kind : Deployment
metadata:
metadata:
name : csi- webdav-controller
name : webdav-csi -controller
namespace : kube-system
namespace : kube-system
spec:
spec:
replicas : 1
replicas : {{ .Values.controller.replicas }}
selector:
selector:
matchLabels:
matchLabels:
app : csi- webdav-controller
app : webdav-csi -controller
template:
template:
metadata:
metadata:
labels:
labels:
app : csi- webdav-controller
app : webdav-csi -controller
spec:
spec:
hostNetwork : true # controller also needs to mount webdav to create dir
hostNetwork : true
dnsPolicy : ClusterFirstWithHostNet # available values : Default, ClusterFirstWithHostNet, ClusterFirs t
dnsPolicy : ClusterFirstWithHostNet
serviceAccountName : webdav-csi-sa
serviceAccountName : webdav-csi-sa
nodeSelector:
nodeSelector:
kubernetes.io/os : linux # add "kubernetes.io/role: master" to run controller on master node
kubernetes.io/os : linux
priorityClassName : system-cluster-critical
priorityClassName : system-cluster-critical
securityContext:
securityContext:
seccompProfile:
seccompProfile:
@ -35,8 +34,8 @@ spec:
effect : "NoSchedule"
effect : "NoSchedule"
containers:
containers:
- name : csi-provisioner
- name : csi-provisioner
image : registry.k8s.io/sig-storage/csi-provisioner:v3.6.2
image : {{ .Values.csiProvisioner.image.name }}:{{ .Values.csiProvisioner.image.tag }}
imagePullPolicy : IfNotPresent
imagePullPolicy : {{ .Values.csiProvisioner.image.pullPolicy }}
args:
args:
- "-v=2"
- "-v=2"
- "--csi-address=$(ADDRESS)"
- "--csi-address=$(ADDRESS)"
@ -52,13 +51,13 @@ spec:
name : socket-dir
name : socket-dir
resources:
resources:
limits:
limits:
memory : 400Mi
memory : {{ .Values.controller.resources.limits.memory }}
requests:
requests:
cpu : 10m
cpu : {{ .Values.controller.resources.requests.cpu }}
memory : 20Mi
memory : {{ .Values.controller.resources.requests.memory }}
- name : liveness-probe
- name : liveness-probe
image : registry.k8s.io/sig-storage/livenessprobe:v2.11.0
image : {{ .Values.livenessProbe.image.name }}:{{ .Values.livenessProbe.image.tag }}
imagePullPolicy : IfNotPresent
imagePullPolicy : {{ .Values.livenessProbe.image.pullPolicy }}
args:
args:
- --csi-address=/csi/csi.sock
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --probe-timeout=3s
@ -74,8 +73,8 @@ spec:
cpu : 10m
cpu : 10m
memory : 20Mi
memory : 20Mi
- name : webdav
- name : webdav
image : localhost:5000/webdavplugin:v0.0.1
image : {{ .Values.controller.image.name }}:{{ .Values.controller.image.tag }}
imagePullPolicy : IfNotPresent
imagePullPolicy : {{ .Values.controller.image.pullPolicy }}
securityContext:
securityContext:
privileged : true
privileged : true
capabilities:
capabilities:
@ -112,10 +111,10 @@ spec:
name : socket-dir
name : socket-dir
resources:
resources:
limits:
limits:
memory : 200Mi
memory : {{ .Values.controller.resources.limits.memory }}
requests:
requests:
cpu : 10m
cpu : {{ .Values.controller.resources.requests.cpu }}
memory : 20Mi
memory : {{ .Values.controller.resources.requests.memory }}
volumes:
volumes:
- name : pods-mount-dir
- name : pods-mount-dir
hostPath:
hostPath: