Update Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md

This commit is contained in:
2024-08-01 03:04:00 -06:00
parent 30dfb3c149
commit d4c2ee5ce2

View File

@ -156,26 +156,26 @@ There is a known issue with upgrading / install AWX Operator beyond version 2.10
### Create a Temporary Pod to Adjust Permissions ### Create a Temporary Pod to Adjust Permissions
We need to create a pod that will mount the PostgreSQL PVC, make changes to permissions, then destroy the v15.0 pod to have the AWX Operator automatically regenerate it. We need to create a pod that will mount the PostgreSQL PVC, make changes to permissions, then destroy the v15.0 pod to have the AWX Operator automatically regenerate it.
```jsx title="/awx/temp-pod.yml" ```jsx title="/awx/temp-pod.yml"
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: temp-pod name: temp-pod
namespace: awx namespace: awx
spec: spec:
containers: containers:
- name: temp-container - name: temp-container
image: busybox image: busybox
command: ['sh', '-c', 'sleep 3600'] command: ['sh', '-c', 'sleep 3600']
volumeMounts: volumeMounts:
- mountPath: /var/lib/pgsql/data - mountPath: /var/lib/pgsql/data
name: postgres-data name: postgres-data
volumes: volumes:
- name: postgres-data - name: postgres-data
persistentVolumeClaim: persistentVolumeClaim:
claimName: postgres-15-awx-postgres-15-0 claimName: postgres-15-awx-postgres-15-0
restartPolicy: Never restartPolicy: Never
``` ```
``` sh ``` sh
# Deploy Temporary Pod # Deploy Temporary Pod