Skip to content

Commit 4f64b97

Browse files
author
Dominique Quatravaux
committed
[refactor] Micro-manage config files between awx-web and awx-task
1 parent 52e728c commit 4f64b97

File tree

1 file changed

+13
-8
lines changed
  • ansible/roles/awx-instance/tasks

1 file changed

+13
-8
lines changed

ansible/roles/awx-instance/tasks/k8s.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,23 @@
157157
cpu: 250m
158158
memory: 1Gi
159159
volumeMounts:
160-
- name: awx-application-config
161-
mountPath: /etc/tower
162-
readOnly: true
163-
- name: awx-application-credentials
164-
mountPath: /etc/tower/conf.d/
165-
readOnly: true
166160
- name: nginx-config
167161
mountPath: /etc/nginx/nginx.conf
168162
subPath: nginx.conf # Just this file, Vasili
169163
# (nginx gets anxious if it is missing a
170164
# /etc/nginx/mime.types)
171165
readOnly: true
166+
- name: awx-application-config
167+
mountPath: /etc/tower/settings.py
168+
subPath: settings.py
169+
readOnly: true
170+
- name: awx-application-config
171+
mountPath: /etc/tower/uwsgi.ini
172+
subPath: uwsgi.ini
173+
readOnly: true
174+
- name: awx-application-credentials
175+
mountPath: /etc/tower/conf.d/
176+
readOnly: true
172177
- name: awx-redis-socket
173178
mountPath: "/var/run/redis"
174179
#####################################################
@@ -182,8 +187,8 @@
182187
memory: 2Gi
183188
volumeMounts:
184189
- name: awx-application-config
185-
mountPath: /etc/tower
186-
readOnly: true
190+
mountPath: /etc/tower/settings.py
191+
subPath: settings.py
187192
- name: awx-application-credentials
188193
mountPath: /etc/tower/conf.d/
189194
readOnly: true

0 commit comments

Comments
 (0)