I'm using k3s version 1.29.6 with Traefik 2.10.7. I'm facing the exact same problem.
I put in the cli flags in the traefik deployment: Traefik Kubernetes Gateway API Documentation | Traefik | v2.10
I have even applied the CRD, Resources and RBAC from this page: Traefik Kubernetes Routing | Traefik | v2.10
Unfortunately:
$ kubectl describe gatewayclass
Name: bind9-gw
Namespace:
Labels: <none>
Annotations: <none>
API Version: gateway.networking.k8s.io/v1
Kind: GatewayClass
Metadata:
Creation Timestamp: 2024-07-30T20:01:39Z
Generation: 1
Resource Version: 11245
UID: 5e408643-58c4-48a0-99e3-e46f633ab7e9
Spec:
Controller Name: traefik.io/gateway-controller
Status:
Conditions:
Last Transition Time: 1970-01-01T00:00:00Z
Message: Waiting for controller
Reason: Waiting
Status: Unknown
Type: Accepted
Events: <none>
Would really appreciate some help.
Edit:
gateway.yaml
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: bind9-gw
namespace: bind9
spec:
controllerName: traefik.io/gateway-controller
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: bind9-gw
namespace: bind9
spec:
gatewayClassName: bind9-gw
listeners:
- name: bind9-https
protocol: HTTPS
port: 443
hostname: dns.tyler.home
tls:
certificateRefs:
- kind: Secret
group: ""
name: bind9-doh-secret
namespace: bind9
- name: bind9-dns
protocol: UDP
port: 53
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: bind9-doh-route
namespace: bind9
spec:
parentRefs:
- name: bind9-gw
hostnames:
- "dns.tyler.home"
rules:
- backendRefs:
- name: bind9-service
port: 443
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: bind9-dns-route
namespace: bind9
spec:
parentRefs:
- name: bind9-gw
hostnames:
- "dns.tyler.home"
rules:
- backendRefs:
- name: bind9-service
port: 53