# How can I change application and Admin Console registry in airgap installs?

**URL:** <https://community.replicated.com/t/how-can-i-change-application-and-admin-console-registry-in-airgap-installs/1051>\
**Category:** Uncategorized\
**Tags:** kots, airgap\
**Created:** [November 28, 2022, 7:12pm UTC](https://community.replicated.com/t/how-can-i-change-application-and-admin-console-registry-in-airgap-installs/1051 "2022-11-28T19:12:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitriy](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dmitriy/32/16_2.png) [@dmitriy](https://community.replicated.com/u/dmitriy)\
**Post date:** [November 28, 2022, 7:12pm UTC](https://community.replicated.com/t/how-can-i-change-application-and-admin-console-registry-in-airgap-installs/1051/1 "2022-11-28T19:12:13Z")

</div>

After application is installed in air gapped mode, the text boxes with registry endpoint and namespace are disabled and cannot be modified. How can I move the application to a new registry host or namespace?

---

<div class="post-metadata">

**Author:** ![dmitriy](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/dmitriy/32/16_2.png) [@dmitriy](https://community.replicated.com/u/dmitriy)\
**Post date:** [November 28, 2022, 7:29pm UTC](https://community.replicated.com/t/how-can-i-change-application-and-admin-console-registry-in-airgap-installs/1051/2 "2022-11-28T19:29:55Z")

</div>

The following steps can be used to move application to a new registry

1. Use the [push-images](https://docs.replicated.com/reference/kots-cli-admin-console-push-images) kots command to push images into the new registry if needed.

```bash
kubectl kots admin-console push-images app-bundle.airgap new-registry-host.bigbank.com/new-registry-namespace

```

2. Change host name and/or registry namespace in Admin Console.
  - Navigate to the application’s Registry Settings page
  - Make sure the **Disable Pushing Images to Registry** box is checked. This will enable editing for all registry fields.
  - Make changes and Save. This should create a new application version with images being rewritten to use the new registry.

3. Uncheck the **Disable Pushing Images to Registry** box and save one more time. This will create a new version of the application that can be deployed and will also ensure that new images are pushed to the registry when application update is made.

Admin Console components will need to be edited manually.

1. Push Admin Console images from Admin Console airgap bundle to the new registry if needed. Note that this is a different airgap bundle file with tar.gz extension.

```bash
kubectl kots admin-console push-images kotsadm.tar.gz new-registry-host.myord.com/new-registry-namespace

```

2. Manually edit Admin Console components to use new images. This step depends on Admin Console version and installation parameters. However components can be discovered using the following commands:

```bash
kubectl -n <namespace> get statefulset -l kots.io/kotsadm=true

```

```bash
kubectl -n <namespace> get deployment -l kots.io/kotsadm=true

```
