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