blob: bd161d54a149a5f9aa27066a5e95686226c8d3f1 [file] [log] [blame]
Hao Kuang27af4a32017-12-15 20:38:03 +00001#{{ if not .Values.disableSdncSdncDbhost }}
BorislavG8bfc6cf2018-02-27 15:04:26 +00002#{{ if not .Values.disableNfsProvisioner }}
Hao Kuang27af4a32017-12-15 20:38:03 +00003kind: Deployment
4apiVersion: extensions/v1beta1
5metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 name: sdnc-nfs-provisioner
7 namespace: "{{ .Values.nsPrefix }}"
Hao Kuang27af4a32017-12-15 20:38:03 +00008spec:
vaibhav_16decb23999a2018-02-14 09:00:07 +00009 replicas: {{ .Values.nfsReplicas }}
Hao Kuang27af4a32017-12-15 20:38:03 +000010 strategy:
11 type: Recreate
12 template:
13 metadata:
14 labels:
15 app: nfs-provisioner
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: sdnc-nfs-provisioner
Hao Kuang27af4a32017-12-15 20:38:03 +000017 spec:
18 containers:
19 - name: nfs-provisioner
20 image: quay.io/kubernetes_incubator/nfs-provisioner:v1.0.8
21 ports:
22 - name: nfs
23 containerPort: 2049
24 - name: mountd
25 containerPort: 20048
26 - name: rpcbind
27 containerPort: 111
28 - name: rpcbind-udp
29 containerPort: 111
30 protocol: UDP
31 securityContext:
32 capabilities:
33 add:
34 - DAC_READ_SEARCH
35 - SYS_RESOURCE
36 args:
37 - "-provisioner=sdnc/nfs"
38 env:
39 - name: POD_IP
40 valueFrom:
41 fieldRef:
42 fieldPath: status.podIP
43 - name: SERVICE_NAME
44 value: nfs-provisioner
45 - name: POD_NAMESPACE
46 valueFrom:
47 fieldRef:
48 fieldPath: metadata.namespace
49 imagePullPolicy: "IfNotPresent"
50 volumeMounts:
51 - name: export-volume
52 mountPath: /export
53 volumes:
54 - name: export-volume
55 hostPath:
kerenj1d423b52018-02-25 15:46:20 +000056 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdnc/data
Hao Kuang27af4a32017-12-15 20:38:03 +000057#{{ end }}
BorislavG8bfc6cf2018-02-27 15:04:26 +000058#{{ end }}