Update AWX service configurations for NodePort to LoadBalancer and adjust selectors
This commit is contained in:
+1
-1
Submodule awx-local-setup updated: cd18c6e75b...e423305242
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user