Last active
February 6, 2024 20:42
-
-
Save chr00ted/f5968a2e32ed1df354fce3de54a55f1d to your computer and use it in GitHub Desktop.
AWX Instance Group custom pod spec for NFS mounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
namespace: awx | |
spec: | |
serviceAccountName: default | |
automountServiceAccountToken: false | |
containers: | |
- image: quay.io/ansible/awx-ee:latest | |
name: worker | |
args: | |
- ansible-runner | |
- worker | |
- '--private-data-dir=/runner' | |
volumeMounts: | |
- name: nfststmnt | |
mountPath: /<where-you-want-to-mount> | |
volumes: | |
- name: nfststmnt | |
nfs: | |
server: <nfs-server-ip> | |
path: /<exported-folder-name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a need for using an NFS mount for saving data from AWX templates/playbooks