Hello team,
we are working for on the decom for our Tanzu cluster.
and we are running AWX instances in Tanzu cluster now i want to migrate our AWX to the new K8 Upstream Cluster (Rocky 8 Cluster).
My AWX version on Tanzu "AWX 23.2.0" and using AWX managed db
can someone guide me on this i have read the official documentation in that they mention that
-
we need to create the Secret key and
-
old DB data secret
i can able to created secret for my old_db with host,port, and credentials details. icant understand the secretkey part we are not used any kind of secret key while deploying
and want to know if i use migration procedure what will happened to my current AWX will it destroy automatically and here i provide my deployment filr for migration pls correct me if anything wrong:
kustomization.yaml:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/ansible/awx-operator/config/default?ref=2.19.0
- old_secret.yaml
- awx.yaml
images:
- name: quay.io/ansible/awx-operator
newTag: 2.19.0
namespace: awx
old_secret.yaml:
---
apiVersion: v1
kind: Secret
metadata:
name: db-postgres-configuration
namespace: awx
stringData:
host: 10.x.x.50
port: "5432" # quotes are required
database: awx
username: awx
password: 6K SDJKNKJNSlsnhjSNJKDS CSKjSKJNKJSCR9
type: Opaque
awx.yaml:
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: ansible-awx
spec:
old_postgres_configuration_secret: db-postgres-configuration
service_type: nodeport
postgres_data_volume_init: true
replicas: 3
task_resource_requirements:
requests:
cpu: 100m
memory: 128Mi
ephemeral-storage: 100M
web_resource_requirements:
requests:
cpu: 100m
memory: 128Mi