blob: 12713a1dbbe4b90038843a68d42b358c9b4c7403 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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 Kuang27af4a32017-12-15 20:38:03 +000015#{{ if not .Values.disableSdncSdncDbhost }}
BorislavG8bfc6cf2018-02-27 15:04:26 +000016#{{ if not .Values.disableNfsProvisioner }}
Hao Kuang27af4a32017-12-15 20:38:03 +000017kind: Deployment
18apiVersion: extensions/v1beta1
19metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 name: sdnc-nfs-provisioner
21 namespace: "{{ .Values.nsPrefix }}"
Hao Kuang27af4a32017-12-15 20:38:03 +000022spec:
vaibhav_16decb23999a2018-02-14 09:00:07 +000023 replicas: {{ .Values.nfsReplicas }}
Hao Kuang27af4a32017-12-15 20:38:03 +000024 strategy:
25 type: Recreate
26 template:
27 metadata:
28 labels:
29 app: nfs-provisioner
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: sdnc-nfs-provisioner
Hao Kuang27af4a32017-12-15 20:38:03 +000031 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:
kerenj1d423b52018-02-25 15:46:20 +000070 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdnc/data
Hao Kuang27af4a32017-12-15 20:38:03 +000071#{{ end }}
BorislavG8bfc6cf2018-02-27 15:04:26 +000072#{{ end }}