blob: 0341344383e9c8937adf15f3d625b7bd236daf3f [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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAafAaf }}
Dusan Rozman7704d2a2017-09-26 16:04:12 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 labels:
20 app: aaf
21 name: aaf
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 namespace: "{{ .Values.nsPrefix }}"
Dusan Rozman7704d2a2017-09-26 16:04:12 -040023spec:
vaibhav_16decb508e0f2018-02-16 06:58:06 +000024 replicas: {{ .Values.aafReplicas }}
Dusan Rozman7704d2a2017-09-26 16:04:12 -040025 selector:
26 matchLabels:
27 app: aaf
28 template:
29 metadata:
30 labels:
31 app: aaf
32 name: aaf
Dusan Rozman7704d2a2017-09-26 16:04:12 -040033 spec:
kiranya8f2d17e2017-11-23 07:31:19 +000034 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
Dusan Rozman7704d2a2017-09-26 16:04:12 -040049 containers:
50 - env:
51 - name: CASSANDRA_CLUSTER
52 value: cassandra_container
53 image: {{ .Values.image.aafImage }}:{{ .Values.image.aafVersion }}
54 imagePullPolicy: {{ .Values.pullPolicy }}
Dusan Rozmane755f642017-10-02 09:55:04 -040055 volumeMounts:
56 - mountPath: /data
57 name: aaf-data
Dusan Rozman7704d2a2017-09-26 16:04:12 -040058 name: aaf
59 readinessProbe:
60 tcpSocket:
61 port: 8101
62 initialDelaySeconds: 5
63 periodSeconds: 10
Dusan Rozmane755f642017-10-02 09:55:04 -040064 volumes:
65 - name: aaf-data
vaibhav_16decadb27b42018-01-17 12:42:39 +000066 configMap:
67 name: aaf-data-configmap
Dusan Rozman7704d2a2017-09-26 16:04:12 -040068 imagePullSecrets:
69 - name: {{ .Values.nsPrefix }}-docker-registry-key
kiranya8f2d17e2017-11-23 07:31:19 +000070#{{ end }}