We need to add a couple of directories to the task container. In the past I modified installer/roles/image_build_tempaltes/Dockerfile.j2 with
RUN mkdir -p /var/lib/awx/public/isos
I am trying to figure out where in the new Operator deployment method I would make these edits. It seems maybe like a config map, but not sure if I need to make my own file in the templates dir or just modify one that is already there. maybe tower_deployment.yaml.j2
Thoughts?
What’s the crd? Sorry for the simple questions
I suggest you read this reference. You do it through a configmap
https://groups.google.com/g/awx-project/c/g66X-FFICXA/m/hVg2aywQAgAJ
There is a reference by Brandon Ellis
I also wrote about my installation too:
I
http://weiyentan.github.io/2021/Installing-awx-kubernetes/.
I had to do something similar
That was a great help thanks. Nice work on the blog post. One thing I am curious about on the extra volumes. I see there is a mount path and a submount path that seems to point to a file. I need a persistent empty volume. We have a process that builds ISO files and drops them in that directory.
Looking at this as an example below, would I build out my directories that I need inside that custom.py file?
tower_task_extra_volume_mounts: |
- name: custom-py
mountPath: /etc/tower/conf.d/custom.py
subPath: custom.py
Hold on a minute. In awx 18+ jobs run in an execution environment. Where is the pv going to be? Remote server or?
So thats a good question, I really dont know. We are running this on AWX14 now. So there is just the awx-web, awx-task and awx-psotgre pods. These extra directories are on the task server
So are you mapping to it on the local server now?
It gets mapped on the OS running on the awx-task pod. Its a centos8 instance if I remember correctly.
So when the playbook runs it runs geniso which builds an ISO and drops it on that extra directory we have setup. During the build process we run RUN mkdir -p /var/lib/awx/public/isos
Ok. So on your kubernetes install. You have one host?
Im not sure of your question. We have 3 pods that get deployed as part of the basic AWX 14 install. awx-web which is the webUI stuff. awx-task which runs the actual playbooks and awx-postgres which is the DB. I actually have no idea what the underlying infrastructure is/ Thats a black box to me. I run the old school ansible-playbook -i inventory install.yml and because of our modifications to the jinja file when it builds the docker image that gets deployed it makes those extra directories on the awx-task pod
Ohhh right so yoy are using awx14 in kubernetes?