blob: 1b32463735ad99254e4788c535d7a2213573b743 [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.disableAaiAaiService }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: aai-service
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +000022 replicas: {{ .Values.aaiServiceReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: aai-service
26 template:
27 metadata:
28 labels:
29 app: aai-service
30 name: aai-service
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
kiranya52a57832017-11-22 12:21:55 +000032 initContainers:
33 - command:
34 - /root/ready.py
35 args:
36 - --container-name
37 - aai-resources
38 - --container-name
39 - aai-traversal
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: aai-service-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 containers:
Mandeep Khinda4b881972017-08-30 14:24:02 +000050 - name: aai-service
51 image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
kerenjfdc17622017-08-24 11:32:22 +000052 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040053 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030054 - mountPath: /etc/localtime
55 name: localtime
56 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000057 - mountPath: /dev/log
58 name: aai-service-log
59 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
mayankg270319ce2792018-02-05 07:12:32 +000060 subPath: haproxy.cfg
Mandeep Khinda4b881972017-08-30 14:24:02 +000061 name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 ports:
63 - containerPort: 8080
64 - containerPort: 8443
65 readinessProbe:
66 tcpSocket:
67 port: 8443
68 initialDelaySeconds: 5
69 periodSeconds: 10
70 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030071 - name: localtime
72 hostPath:
73 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000074 - name: aai-service-log
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 hostPath:
Alexis de Talhouët62654112017-11-27 16:29:17 -050076 path: "/dev/log"
Mandeep Khinda4b881972017-08-30 14:24:02 +000077 - name: haproxy-cfg
mayankg270319ce2792018-02-05 07:12:32 +000078 configMap:
79 name: aai-deployment-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040080 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030081 imagePullSecrets:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040082 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya52a57832017-11-22 12:21:55 +000083#{{ end }}