Add Nokia v2 driver
[oom.git] / kubernetes / sdnc / templates / nfs-provisoner-deployment.yaml
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
15 #{{ if not .Values.disableSdncSdncDbhost }}
16 #{{ if not .Values.disableNfsProvisioner }}
17 kind: Deployment
18 apiVersion: extensions/v1beta1
19 metadata:
20   name: sdnc-nfs-provisioner
21   namespace: "{{ .Values.nsPrefix }}"
22 spec:
23   replicas: {{ .Values.nfsReplicas }}
24   strategy:
25     type: Recreate
26   template:
27     metadata:
28       labels:
29         app: nfs-provisioner
30       name: sdnc-nfs-provisioner
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:
70             path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdnc/data
71 #{{ end }}
72 #{{ end }}