# AWX Migration Tanzu to upstram

**URL:** <https://forum.ansible.com/t/awx-migration-tanzu-to-upstram/9609>\
**Category:** Get Help\
**Tags:** migration, awx, kubernetes\
**Created:** [October 1, 2024, 12:34pm UTC](https://forum.ansible.com/t/awx-migration-tanzu-to-upstram/9609 "2024-10-01T12:34:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thirumalairaja](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Post date:** [October 1, 2024, 12:34pm UTC](https://forum.ansible.com/t/awx-migration-tanzu-to-upstram/9609/1 "2024-10-01T12:34:02Z")

</div>

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:`

```auto
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:`

```auto
---
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:`

```auto
---
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

```
