如何将本地 data_path 公开给 temp_job_container (awx-job-xxxxx)?

问题描述

我从 awx 运行的剧本需要检查 nfs 文件。因此我想将本地主机的 mount_path 暴露给临时容器,或者将 nfs_volume 的 pvc 挂载到临时容器。我试图将 nfs_volume 的 pvc 挂载到 awx-ee 容器,但我的剧本失败了,因为作业没有在 awx-ee 容器上运行。 任何方法都可以,所以请让我知道如何从正在运行的作业中引用 nfs 文件。提前致谢。

  • minikube
  • awx:19.1.0
  • awx-operator: 0.9.0
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
spec:
  tower_ee_images:
    - name: my-custom-awx-ee
      image: xxxxxxx/my-custom-awx-ee
  tower_ingress_type: NodePort
  tower_projects_persistence: true
  tower_projects_existing_claim: awx-projects-claim02
  tower_ee_extra_volume_mounts: |
    - name: myawx-nfs
      mountPath: /nfs

  tower_extra_volumes: |
    - name: myawx-nfs
      persistentVolumeClaim:
        claimName: myawx-nfs-pvc

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)