2 # Copyright © 2019 Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 podManagementPolicy: OrderedReady
29 replicas: {{ .Values.replicaCount }}
30 serviceName: {{ include "common.fullname" . }}
33 app: {{ include "common.fullname" . }}
34 name: {{ include "common.name" . }}-web-deploy
39 app: {{ include "common.fullname" . }}
40 name: {{ include "common.name" . }}-web-deploy
41 release: {{ include "common.release" . }}
46 - name: {{ include "common.name" . }}-init-readiness
47 image: {{ include "repositoryGenerator.image.readiness" . }}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - {{ include "common.name" . }}-mgnt
59 fieldPath: metadata.namespace
63 - image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.web }}
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 name: {{ include "common.name" . }}-web
67 - containerPort: {{ .Values.service.web.internalPort }}
74 - mountPath: /etc/tower/settings.py
75 name: awx-application-config
78 - mountPath: /etc/tower/conf.d/
79 name: awx-application-credentials
81 - mountPath: /etc/tower/SECRET_KEY
85 - mountPath: /etc/nginx/nginx.conf
89 - command: ["/bin/sh","-c"]
90 args: ["/usr/bin/launch_awx_task.sh"]
92 - name: AWX_SKIP_MIGRATIONS
95 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.task }}
96 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
97 name: {{ include "common.name" . }}-celery
105 - mountPath: /etc/tower/settings.py
106 name: awx-application-config
109 - mountPath: /etc/tower/conf.d/
110 name: awx-application-credentials
112 - mountPath: /etc/tower/SECRET_KEY
116 - mountPath: /etc/nginx/nginx.conf
118 subPath: "nginx.conf"
124 fieldPath: status.podIP
125 - name: RABBITMQ_USE_LONGNAME
127 - name: RABBITMQ_NODENAME
128 value: rabbit@$(MY_POD_IP)
129 - name: RABBITMQ_ERLANG_COOKIE
132 key: rabbitmq_erlang_cookie
133 name: {{ include "common.fullname" . }}-secrets
134 - name: K8S_SERVICE_NAME
135 value: {{ include "common.servicename" . }}-rabbitmq
137 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.rabbitmq }}
138 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
139 name: {{ include "common.name" . }}-rabbit
146 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
147 periodSeconds: {{ .Values.liveness.periodSeconds }}
151 - containerPort: {{ .Values.service.rabbitmq.http.internalPort }}
152 name: {{ .Values.service.rabbitmq.http.portName }}
154 - containerPort: {{ .Values.service.rabbitmq.amqp.internalPort }}
155 name: {{ .Values.service.rabbitmq.amqp.portName }}
163 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
164 periodSeconds: {{ .Values.liveness.periodSeconds }}
172 - mountPath: /etc/rabbitmq
173 name: rabbitmq-config
175 - image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.memcached }}
176 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
177 name: {{ include "common.name" . }}-memcached
182 serviceAccount: {{ include "common.fullname" . }}
183 serviceAccountName: {{ include "common.fullname" . }}
190 name: {{ include "common.fullname" . }}-settings
191 name: awx-application-config
192 - name: awx-application-credentials
196 - key: credentials_py
198 - key: environment_sh
200 secretName: {{ include "common.fullname" . }}-secrets
201 - name: awx-secret-key
207 secretName: {{ include "common.fullname" . }}-secrets
213 - key: enabled_plugins
214 path: enabled_plugins
215 - key: rabbitmq_definitions.json
216 path: rabbitmq_definitions.json
217 name: {{ include "common.fullname" . }}-rabbitmq
218 name: rabbitmq-config
224 name: {{ include "common.fullname" . }}-nginx-conf
227 - name: "{{ include "common.namespace" . }}-docker-registry-key"