#Adding a volume mount to an Execution Environment

1 messages · Page 1 of 1 (latest)

frail hull
#

This isnt technically NetApp specific but since a lot of people build custom EE's for NetApp I thought someone may know.

I have built a custom EE's for NetApp in the past without issue using the guide below which uses ansible builder. Unfortunately the one thing I want to do doesnt seem to be documented. I want to add a Volume mount to my Execution Environment but have not been successful. Has any one done this? if so could you show your work?
https://github.com/kurokobo/awx-on-k3s/tree/main/builder
https://ansible.readthedocs.io/projects/builder/en/latest/

THanks,
Matt

GitHub

An example implementation of AWX on single node K3s using AWX Operator, with easy-to-use simplified configuration with ownership of data and passwords. - kurokobo/awx-on-k3s

frail hull
#

Im usjng this EE in AWX if that helps

frail hull
#

I think I figured it out. Here is what I did to make it work in case it can help someone else.

  1. Log in to awx
  2. Click on Instance Groups
  3. for me I edited my "default" instance group
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'
      resources:
        requests:
          cpu: 250m
          memory: 100Mi
      volumeMounts:
        - name: esx
          mountPath: /mnt/esx/
        - name: datastore
          mountPath: /mnt/datastore/
  volumes:
  - name: esx
    hostPath: 
      path: /mnt/esx/
  - name: datastore
    hostPath: 
      path: /mnt/datastore/