1
0
Fork 0

Fix documentation to match new gateway-api selector syntax

This commit is contained in:
Firespray-31 2025-08-21 23:30:07 +10:00 committed by GitHub
parent 3b33ffa245
commit 50f95dd909
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 6 deletions

View file

@ -325,11 +325,13 @@ kubectl create secret tls whoami-tls --cert=tls.crt --key=tls.key
web: web:
port: 80 port: 80
protocol: HTTP protocol: HTTP
namespacePolicy: All namespacePolicy:
from: All
websecure: websecure:
port: 443 port: 443
protocol: HTTPS protocol: HTTPS
namespacePolicy: All namespacePolicy:
from: All
mode: Terminate mode: Terminate
certificateRefs: certificateRefs:
- kind: Secret - kind: Secret

View file

@ -79,7 +79,10 @@ providers:
kubernetesGateway: kubernetesGateway:
enabled: true enabled: true
gateway: gateway:
namespacePolicy: All listeners:
web:
namespacePolicy:
from: All
``` ```
!!! info !!! info
@ -106,7 +109,7 @@ helm install traefik traefik/traefik --wait \
--set ingressRoute.dashboard.matchRule='Host(`dashboard.localhost`)' \ --set ingressRoute.dashboard.matchRule='Host(`dashboard.localhost`)' \
--set ingressRoute.dashboard.entryPoints={web} \ --set ingressRoute.dashboard.entryPoints={web} \
--set providers.kubernetesGateway.enabled=true \ --set providers.kubernetesGateway.enabled=true \
--set gateway.namespacePolicy=All --set gateway.listeners.web.namespacePolicy.from=All
``` ```
!!! info !!! info

View file

@ -162,12 +162,14 @@ gateway:
web: # HTTP listener that matches entryPoint `web` web: # HTTP listener that matches entryPoint `web`
port: 80 port: 80
protocol: HTTP protocol: HTTP
namespacePolicy: All namespacePolicy:
from: All
websecure: # HTTPS listener that matches entryPoint `websecure` websecure: # HTTPS listener that matches entryPoint `websecure`
port: 443 port: 443
protocol: HTTPS # TLS terminates inside Traefik protocol: HTTPS # TLS terminates inside Traefik
namespacePolicy: All namespacePolicy:
from: All
mode: Terminate mode: Terminate
certificateRefs: certificateRefs:
- kind: Secret - kind: Secret