Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncSdncDbhost }} |
| 2 | kind: Deployment |
| 3 | apiVersion: extensions/v1beta1 |
| 4 | metadata: |
| 5 | name: nfs-provisioner |
| 6 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
| 7 | spec: |
vaibhav_16dec | b23999a | 2018-02-14 09:00:07 +0000 | [diff] [blame^] | 8 | replicas: {{ .Values.nfsReplicas }} |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 9 | 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 }} |