Update AWX service configurations for NodePort to LoadBalancer and adjust selectors

This commit is contained in:
2025-09-12 09:50:28 +02:00
parent 4029bde2cd
commit 7c609948ec
5 changed files with 22 additions and 6 deletions
Submodule awx-local-setup updated: cd18c6e75b...e423305242
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=AWX Network Bridge - Permanent access to AWX on 192.168.1.144:8082
After=minikube.service
Requires=minikube.service
[Service]
Type=simple
User=alex
ExecStartPre=/bin/bash -c 'until minikube status | grep -q "Running"; do sleep 5; done'
ExecStartPre=/bin/bash -c 'until kubectl get pods -n awx | grep awx-web | grep -q Running; do sleep 5; done'
ExecStart=/usr/bin/socat TCP-LISTEN:8082,bind=192.168.1.144,fork,reuseaddr TCP:192.168.49.2:31080
Restart=always
RestartSec=10
Environment=HOME=/home/alex
[Install]
WantedBy=multi-user.target
View File
View File
+4 -5
View File
@@ -5,12 +5,11 @@ metadata:
namespace: awx
spec:
selector:
app.kubernetes.io/component: web
app.kubernetes.io/name: awx
app.kubernetes.io/component: awx
app.kubernetes.io/name: awx-web
ports:
- protocol: TCP
port: 80
port: 8082
targetPort: 8052
nodePort: 30080 # You can change this to any valid NodePort (between 30000-32767)
type: NodePort
type: LoadBalancer