# AWX GUI Not reachable without port forward

**URL:** <https://forum.ansible.com/t/awx-gui-not-reachable-without-port-forward/3753>\
**Category:** Get Help\
**Tags:** ubuntu, awx, collections, kubernetes\
**Created:** [February 7, 2024, 6:44pm UTC](https://forum.ansible.com/t/awx-gui-not-reachable-without-port-forward/3753 "2024-02-07T18:44:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wojtek0806](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wojtek0806/32/2235_2.png) [@wojtek0806](https://forum.ansible.com/u/wojtek0806)\
**Post date:** [February 7, 2024, 6:44pm UTC](https://forum.ansible.com/t/awx-gui-not-reachable-without-port-forward/3753/1 "2024-02-07T18:44:27Z")

</div>

I have followed the basic deployment docs to install AWX on UBUNTU 22.04: [Basic install - Ansible AWX Operator Documentation](https://ansible.readthedocs.io/projects/awx-operator/en/stable/installation/basic-install.html)

Everything seems to run fine and I can use it however to access GUI I am forced to do port-forwarding like so:

```auto
kubectl port-forward svc/awx-service --address <my external ip> 8080:80 &> /dev/null &

```

My awx.yaml:

```auto
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
spec:
  service_type: nodeport

```

kustomization.yaml:

```auto
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  # Find the latest tag here: https://github.com/ansible/awx-operator/releases
  - github.com/ansible/awx-operator/config/default?ref=2.5.3
  - awx.yaml

# Set the image tags to match the git version from above
images:
  - name: quay.io/ansible/awx-operator
    newTag: 2.5.3

# Specify a custom namespace in which to install AWX
namespace: awx

```

`minikube service list` output:

```auto
|---------------|-------------------------------------------------|--------------|---------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|---------------|-------------------------------------------------|--------------|---------------------------|
| awx | awx-operator-controller-manager-metrics-service | No node port | |
| awx | awx-postgres-13 | No node port | |
| awx | awx-service | http/80 | http://192.168.49.2:30226 |
| default | kubernetes | No node port | |
| ingress-nginx | ingress-nginx-controller | http/80 | http://192.168.49.2:30973 |
| | | https/443 | http://192.168.49.2:31202 |
| ingress-nginx | ingress-nginx-controller-admission | No node port | |
| kube-system | kube-dns | No node port | |
|---------------|-------------------------------------------------|--------------|---------------------------|

```

Before I enabled port forward (which is not permanent) I have tried doing curl on the server where AWX is installed to `http://192.168.49.2:30226` and it was successful, however when i tried doing curl(from the same server) to `http://localhost:80` or curl to` http://<my external ip>:80` i was getting connection refused.

Not sure what can i do here, I have tried setting up nodeport service without any success:  
`kubectl expose service awx-service --type=NodePort --name=awx-nodeport --port=8080 --target-port=80`

My firewall and iptables are disabled, as this is our lab unit. I am new to kubernetes and networking in kube clusters so any guidance would be appreciated. Also I have configured all the jobs etc on AWX so I do not want to lose this so if there are solutions please suggest those that won’t destroy my setup. 🙂

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [February 13, 2024, 4:22pm UTC](https://forum.ansible.com/t/awx-gui-not-reachable-without-port-forward/3753/2 "2024-02-13T16:22:25Z")

</div>

Hi there

Minikube runs as a container on your host machine and when you expose a “NodePort” service on minikube it exposes it on the minikube’s container

that’s why u got `http://192.168.49.2:30226`

this is not accessible from outside of your host machine and the port is not mapped to your local host

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [February 13, 2024, 4:24pm UTC](https://forum.ansible.com/t/awx-gui-not-reachable-without-port-forward/3753/3 "2024-02-13T16:24:41Z")

</div>

[https://github.com/kurokobo/awx-on-k3s](https://github.com/kurokobo/awx-on-k3s)

this is a guide that a lot of community member uses for hosting awx on k3s maybe this will be helpful
