move nodeports for nginx

This commit is contained in:
chris 2019-05-22 13:37:13 +02:00
parent d0e4b05478
commit bb17a17bb7
2 changed files with 8 additions and 8 deletions

View file

@ -10,9 +10,9 @@ defaults
listen http-in listen http-in
bind *:80 bind *:80
server server1 10.0.1.21:30001 maxconn 32 server server1 10.42.23.21:30080 maxconn 32
server server2 10.0.1.21:30001 maxconn 32 server server2 10.42.23.22:30080 maxconn 32
server server3 10.0.1.21:30001 maxconn 32 server server3 10.42.23.23:30080 maxconn 32
listen https-in listen https-in
bind *:443 bind *:443
@ -24,6 +24,6 @@ listen https-in
log global log global
timeout connect 10s timeout connect 10s
timeout server 1m timeout server 1m
server server1 10.0.1.21:30181 check server server1 10.42.23.21:30143 check
server server2 10.0.1.21:30181 check server server2 10.42.23.22:30143 check
server server3 10.0.1.21:30181 check server server3 10.42.23.23:30143 check

View file

@ -13,12 +13,12 @@ spec:
port: 80 port: 80
targetPort: 80 targetPort: 80
protocol: TCP protocol: TCP
nodePort: 30001 nodePort: 30080
- name: https - name: https
port: 443 port: 443
targetPort: 443 targetPort: 443
protocol: TCP protocol: TCP
nodePort: 30181 nodePort: 30143
selector: selector:
app.kubernetes.io/name: ingress-nginx app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx app.kubernetes.io/part-of: ingress-nginx