# Does traefik v3 beta 5 supports Kubernetes Gateway API?

**URL:** <https://community.traefik.io/t/does-traefik-v3-beta-5-supports-kubernetes-gateway-api/20690>\
**Category:** Traefik v3 (latest)\
**Tags:** kubernetes-crd\
**Created:** [December 5, 2023, 3:32pm UTC](https://community.traefik.io/t/does-traefik-v3-beta-5-supports-kubernetes-gateway-api/20690 "2023-12-05T15:32:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juchom](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@juchom](https://community.traefik.io/u/juchom)\
**Post date:** [December 5, 2023, 3:32pm UTC](https://community.traefik.io/t/does-traefik-v3-beta-5-supports-kubernetes-gateway-api/20690/1 "2023-12-05T15:32:22Z")

</div>

I've updated traefik from v2.10 to 3.0-beta5 and it can't find my HTTPRoute anymore.

```auto
kubectl auth can-i list middlewares --as=system:serviceaccount:traefik:traefik-controller
yes
kubectl auth can-i list gateways --as=system:serviceaccount:traefik:traefik-controller
yes
kubectl auth can-i list httproute --as=system:serviceaccount:traefik:traefik-controller
yes
kubectl auth can-i list gatewayclasses --as=system:serviceaccount:traefik:traefik-controller
Warning: resource 'gatewayclasses' is not namespace scoped in group 'gateway.networking.k8s.io'

yes

```

I have nothing special in logs except the warnings links to v1alpha2.

I destroyed the whole traefik namespace, I've deleted my HTTPRoute and Traefik does not see it.

UPDATE 1 :

There is a problem with the GatewayClass

```auto
kubectl -n traefik describe gatewayclass traefik

Name: traefik
Namespace:
Labels: app.kubernetes.io/instance=traefik
              app.kubernetes.io/name=traefik
Annotations: <none>
API Version: gateway.networking.k8s.io/v1
Kind: GatewayClass
Metadata:
  Creation Timestamp: 2023-12-05T10:19:00Z
  Generation: 1
  Resource Version: 35221333623
  UID: ffce3454-bff5-423c-b1bd-c56c66d8f047
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>

```

Providers are available

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/7/762d09f944d21bffa8ec45cbb268ec41f1735ebc.png)

Here is how I configured Traefik (this was working for v2.10)

```auto
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: traefik
  namespace: traefik
  labels:
    app.kubernetes.io/name: traefik
    app.kubernetes.io/instance: traefik
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: traefik
      app.kubernetes.io/instance: traefik
  template:
    metadata:
      labels:
        app.kubernetes.io/name: traefik
        app.kubernetes.io/instance: traefik
    spec:
      serviceAccountName: traefik-controller
      terminationGracePeriodSeconds: 60
      hostNetwork: false
      containers:
        - name: traefik
          image: traefik:v3.0.0-beta5
          resources:
          readinessProbe:
            httpGet:
              path: /ping
              port: 9000
            failureThreshold: 1
            initialDelaySeconds: 10
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 5
          livenessProbe:
            httpGet:
              path: /ping
              port: 9000
            failureThreshold: 3
            initialDelaySeconds: 10
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 5
          ports:
            - name: "traefik"
              containerPort: 9000
              protocol: TCP
            - name: "web"
              hostPort: 80
              containerPort: 8000
              protocol: TCP
            - name: "websecure"
              hostPort: 443
              containerPort: 8443
              protocol: TCP
          securityContext:
            capabilities:
              drop:
                - ALL
              add:
                - NET_BIND_SERVICE
            readOnlyRootFilesystem: true
            runAsGroup: 65532
            runAsNonRoot: true
            runAsUser: 65532
          volumeMounts:
            - name: data
              mountPath: /data
          args:
            - "--global.checknewversion"
            - "--entryPoints.traefik.address=:9000"
            - "--entryPoints.web.address=:8000"
            - "--entryPoints.websecure.address=:8443"
            - "--api.dashboard=true"
            - "--ping=true"
            - "--providers.kubernetescrd"
            - "--providers.kubernetesingress"
            - "--entrypoints.websecure.http.tls"
            - "--providers.kubernetescrd.allowCrossNamespace=true"
            - "--experimental.kubernetesgateway=true"
            - "--providers.kubernetesgateway=true"
      volumes:
        - name: data
          emptyDir: {}
      securityContext:
        fsGroup: 65532

```

Any idea on what can be done to investigate this issue ?

Thanks

---

<div class="post-metadata">

**Author:** ![juchom](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@juchom](https://community.traefik.io/u/juchom)\
**Post date:** [December 11, 2023, 11:17am UTC](https://community.traefik.io/t/does-traefik-v3-beta-5-supports-kubernetes-gateway-api/20690/2 "2023-12-11T11:17:01Z")

</div>

After digging a bit more, I think when this PR is merged in v3.0 branch it should fix my problem.

> <https://github.com/traefik/traefik/pull/10205>
>
> \### What does this PR do?
> 
> This PR upgrades Gateway API to version v1.0.0.
> 
> …It removes support of \`v1alpha2\`because it has been \[deprecated\](https://github.com/kubernetes-sigs/gateway-api/blob/51c32c3e070aa9d0d0a4fdad83151792a521045b/apis/v1alpha2/gateway\_types.go#L30)
> 
> \### Motivation
> 
> Fixes #10182
> 
> 
> \### More
> 
> \- \[x\] Added/updated tests
> \- \[x\] Added/updated documentation
> 
> \### Additional Notes

---

<div class="post-metadata">

**Author:** ![juchom](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@juchom](https://community.traefik.io/u/juchom)\
**Post date:** [February 14, 2024, 6:45pm UTC](https://community.traefik.io/t/does-traefik-v3-beta-5-supports-kubernetes-gateway-api/20690/3 "2024-02-14T18:45:59Z")

</div>

With RC1 it works well 👍

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [February 17, 2024, 6:46pm UTC](https://community.traefik.io/t/does-traefik-v3-beta-5-supports-kubernetes-gateway-api/20690/4 "2024-02-17T18:46:22Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
