Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncSdncDbhost }} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 2 | #{{ if not .Values.disableNfsProvisioner }} |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 3 | kind: Deployment |
| 4 | apiVersion: extensions/v1beta1 |
| 5 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 6 | name: sdnc-nfs-provisioner |
| 7 | namespace: "{{ .Values.nsPrefix }}" |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 8 | spec: |
vaibhav_16dec | b23999a | 2018-02-14 09:00:07 +0000 | [diff] [blame] | 9 | replicas: {{ .Values.nfsReplicas }} |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 10 | strategy: |
| 11 | type: Recreate |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: nfs-provisioner |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 16 | name: sdnc-nfs-provisioner |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 17 | 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: |
kerenj | 1d423b5 | 2018-02-25 15:46:20 +0000 | [diff] [blame] | 56 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdnc/data |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 57 | #{{ end }} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 58 | #{{ end }} |