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: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - {{ include "common.name" . }}-mgnt
59 fieldPath: metadata.namespace
63 - image: "{{ .Values.repository }}/{{ .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 - command: ["/bin/sh","-c"]
86 args: ["/usr/bin/launch_awx_task.sh"]
88 - name: AWX_SKIP_MIGRATIONS
91 image: "{{ .Values.repository }}/{{ .Values.image.task }}"
92 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
93 name: {{ include "common.name" . }}-celery
101 - mountPath: /etc/tower/settings.py
102 name: awx-application-config
105 - mountPath: /etc/tower/conf.d/
106 name: awx-application-credentials
108 - mountPath: /etc/tower/SECRET_KEY
117 fieldPath: status.podIP
118 - name: RABBITMQ_USE_LONGNAME
120 - name: RABBITMQ_NODENAME
121 value: rabbit@$(MY_POD_IP)
122 - name: RABBITMQ_ERLANG_COOKIE
125 key: rabbitmq_erlang_cookie
126 name: {{ include "common.fullname" . }}-secrets
127 - name: K8S_SERVICE_NAME
128 value: {{ include "common.servicename" . }}-rabbitmq
130 image: "{{ .Values.repository }}/{{ .Values.image.rabbitmq }}"
131 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
132 name: {{ include "common.name" . }}-rabbit
139 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
140 periodSeconds: {{ .Values.liveness.periodSeconds }}
144 - containerPort: {{ .Values.service.rabbitmq.http.internalPort }}
145 name: {{ .Values.service.rabbitmq.http.portName }}
147 - containerPort: {{ .Values.service.rabbitmq.amqp.internalPort }}
148 name: {{ .Values.service.rabbitmq.amqp.portName }}
156 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
157 periodSeconds: {{ .Values.liveness.periodSeconds }}
165 - mountPath: /etc/rabbitmq
166 name: rabbitmq-config
168 - image: "{{ .Values.image.memcached }}"
169 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
170 name: {{ include "common.name" . }}-memcached
175 serviceAccount: {{ include "common.fullname" . }}
176 serviceAccountName: {{ include "common.fullname" . }}
183 name: {{ include "common.fullname" . }}-settings
184 name: awx-application-config
185 - name: awx-application-credentials
189 - key: credentials_py
191 - key: environment_sh
193 secretName: {{ include "common.fullname" . }}-secrets
194 - name: awx-secret-key
200 secretName: {{ include "common.fullname" . }}-secrets
206 - key: enabled_plugins
207 path: enabled_plugins
208 - key: rabbitmq_definitions.json
209 path: rabbitmq_definitions.json
210 name: {{ include "common.fullname" . }}-rabbitmq
211 name: rabbitmq-config
213 - name: "{{ include "common.namespace" . }}-docker-registry-key"