This is an old revision of the document!
kube1:~/webd-k8s# cat my-webd-deployment.yaml
...
# image: httpd
image: brndnmtthws/nginx-echo-headers
...
kube1:~/webd-k8s# cat my-gateway.yaml
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: my-gateway
spec:
# gatewayClassName: traefik
# gatewayClassName: eg
listeners:
- name: http
# port: 8000
# port: 80
protocol: HTTP
- name: https
hostname: "htwebd.corpX.un"
protocol: HTTPS
# port: 8443
# port: 443
tls:
mode: Terminate
certificateRefs:
- kind: Secret
name: htwebd-tls
kube1:~/webd-k8s# cat my-httproute.yaml
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: my-httproute
spec:
hostnames:
- htwebd.corpX.un
parentRefs:
- name: my-gateway
# - name: traefik-gateway
# namespace: traefik
rules:
- matches:
- path:
type: Exact
value: /
backendRefs:
- name: my-webd
port: 80