License addition in all yamls
[oom.git] / kubernetes / aaf / templates / aaf-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.disableAafAaf }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   labels:
20     app: aaf
21   name: aaf
22   namespace: "{{ .Values.nsPrefix }}"
23 spec:
24   replicas: {{ .Values.aafReplicas }}
25   selector:
26     matchLabels:
27       app: aaf
28   template:
29     metadata:
30       labels:
31         app: aaf
32       name: aaf
33     spec:
34       initContainers:
35       - command:
36         - /root/ready.py
37         args:
38         - --container-name
39         - aaf-cs
40         env:
41         - name: NAMESPACE
42           valueFrom:
43             fieldRef:
44               apiVersion: v1
45               fieldPath: metadata.namespace
46         image: {{ .Values.image.readiness }}
47         imagePullPolicy: {{ .Values.pullPolicy }}
48         name: aaf-readiness
49       containers:
50       - env:
51         - name: CASSANDRA_CLUSTER
52           value: cassandra_container
53         image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }}
54         imagePullPolicy: {{ .Values.pullPolicy }}
55         volumeMounts:
56         - mountPath: /data
57           name: aaf-data
58         name: aaf
59         readinessProbe:
60           tcpSocket:
61             port: 8101
62           initialDelaySeconds: 5
63           periodSeconds: 10
64       volumes:
65         - name: aaf-data
66           configMap:
67             name: aaf-data-configmap
68       imagePullSecrets:
69       - name: {{ .Values.nsPrefix }}-docker-registry-key
70 #{{ end }}