fix(traefik): specify host ip for ports

This commit is contained in:
SeanOMik 2023-08-24 23:00:35 -04:00
parent 59a42f1c63
commit 90e417ac1f
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
2 changed files with 31 additions and 2 deletions

View File

@ -55,11 +55,39 @@ spec:
spec: spec:
loadBalancerIP: "192.168.87.10" loadBalancerIP: "192.168.87.10"
# ports:
# traefik:
# port: 9000
# expose: true
# exposedPort: 9000
# # The port protocol (TCP/UDP)
# protocol: TCP
# web:
# port: 8000
# expose: true
# exposedPort: 80
# redirectTo: websecure
# protocol: TCP
# websecure:
# port: 8443
# expose: true
# exposedPort: 443
# protocol: TCP
# tls:
# enabled: true
# #certResolver: cloudflare
# metrics:
# port: 9100
# expose: true
# exposedPort: 9100
# protocol: TCP
ports: ports:
traefik: traefik:
port: 9000 port: 9000
expose: true expose: true
exposedPort: 9000 exposedPort: 9000
hostIP: 192.168.87.10
# The port protocol (TCP/UDP) # The port protocol (TCP/UDP)
protocol: TCP protocol: TCP
web: web:
@ -67,19 +95,20 @@ spec:
expose: true expose: true
exposedPort: 80 exposedPort: 80
redirectTo: websecure redirectTo: websecure
hostIP: 192.168.87.10
protocol: TCP protocol: TCP
websecure: websecure:
port: 8443 port: 8443
expose: true expose: true
exposedPort: 443 exposedPort: 443
hostIP: 192.168.87.10
protocol: TCP protocol: TCP
tls: tls:
enabled: true enabled: true
#certResolver: cloudflare #certResolver: cloudflare
metrics: metrics:
port: 9100 port: 9100
expose: true expose: false
exposedPort: 9100
protocol: TCP protocol: TCP
# Disable Dashboard # Disable Dashboard

0
docs/hostports.md Normal file
View File