vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 15 | #{{ if not .Values.disableSdncSdncDbhost }} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 16 | #{{ if not .Values.disableNfsProvisioner }} |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 17 | kind: Deployment |
| 18 | apiVersion: extensions/v1beta1 |
| 19 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | name: sdnc-nfs-provisioner |
| 21 | namespace: "{{ .Values.nsPrefix }}" |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 22 | spec: |
vaibhav_16dec | b23999a | 2018-02-14 09:00:07 +0000 | [diff] [blame] | 23 | replicas: {{ .Values.nfsReplicas }} |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 24 | strategy: |
| 25 | type: Recreate |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: nfs-provisioner |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 30 | name: sdnc-nfs-provisioner |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 31 | spec: |
| 32 | containers: |
| 33 | - name: nfs-provisioner |
| 34 | image: quay.io/kubernetes_incubator/nfs-provisioner:v1.0.8 |
| 35 | ports: |
| 36 | - name: nfs |
| 37 | containerPort: 2049 |
| 38 | - name: mountd |
| 39 | containerPort: 20048 |
| 40 | - name: rpcbind |
| 41 | containerPort: 111 |
| 42 | - name: rpcbind-udp |
| 43 | containerPort: 111 |
| 44 | protocol: UDP |
| 45 | securityContext: |
| 46 | capabilities: |
| 47 | add: |
| 48 | - DAC_READ_SEARCH |
| 49 | - SYS_RESOURCE |
| 50 | args: |
| 51 | - "-provisioner=sdnc/nfs" |
| 52 | env: |
| 53 | - name: POD_IP |
| 54 | valueFrom: |
| 55 | fieldRef: |
| 56 | fieldPath: status.podIP |
| 57 | - name: SERVICE_NAME |
| 58 | value: nfs-provisioner |
| 59 | - name: POD_NAMESPACE |
| 60 | valueFrom: |
| 61 | fieldRef: |
| 62 | fieldPath: metadata.namespace |
| 63 | imagePullPolicy: "IfNotPresent" |
| 64 | volumeMounts: |
| 65 | - name: export-volume |
| 66 | mountPath: /export |
| 67 | volumes: |
| 68 | - name: export-volume |
| 69 | hostPath: |
kerenj | 1d423b5 | 2018-02-25 15:46:20 +0000 | [diff] [blame] | 70 | path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdnc/data |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 71 | #{{ end }} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 72 | #{{ end }} |