fixed switches services

This commit is contained in:
2025-01-20 14:20:55 +01:00
parent 2b83210de0
commit 3d6dae36b6
2 changed files with 6 additions and 6 deletions

View File

@@ -3,11 +3,11 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: nginx-internal name: nginx-external
spec: spec:
type: LoadBalancer type: LoadBalancer
selector: selector:
app.kubernetes.io/name: nginx-internal app.kubernetes.io/name: nginx-external
ports: ports:
- name: http - name: http
port: 80 port: 80
@@ -15,4 +15,4 @@ spec:
- name: https - name: https
port: 443 port: 443
targetPort: 443 targetPort: 443
loadBalancerIP: 192.168.0.201 loadBalancerIP: 192.168.0.202

View File

@@ -2,11 +2,11 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: nginx-external name: nginx-internal
spec: spec:
type: LoadBalancer type: LoadBalancer
selector: selector:
app.kubernetes.io/name: nginx-external app.kubernetes.io/name: nginx-internal
ports: ports:
- name: http - name: http
port: 80 port: 80
@@ -14,4 +14,4 @@ spec:
- name: https - name: https
port: 443 port: 443
targetPort: 443 targetPort: 443
loadBalancerIP: 192.168.0.202 loadBalancerIP: 192.168.0.201