Skip to content

Can't create a Gateway on MicroK8S #1382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
edgework opened this issue Apr 12, 2025 · 2 comments
Open
2 tasks done

Can't create a Gateway on MicroK8S #1382

edgework opened this issue Apr 12, 2025 · 2 comments
Labels
kind/question Further information is requested

Comments

@edgework
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

Similar to traefik/traefik#11666

On microk8s 1.32.3 I get

W0412 00:27:21.933731       1 reflector.go:561] k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.GRPCRoute: the server could not find the requested resource (get grpcroutes.gateway.networking.k8s.io)
E0412 00:27:21.933765       1 reflector.go:158] "Unhandled Error" err="k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.GRPCRoute: failed to list *v1.GRPCRoute: the server could not find the requested resource (get grpcroutes.gateway.networking.k8s.io)" logger="UnhandledError"

We have no mention of GRPCRoute anywhere. This is just with gateway created on an otherwise empty cluster with this

kubectl apply -f - <<EOF
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
  name: traefik
spec:
  controllerName: traefik.io/gateway-controller
EOF

What did you see instead?

Sadness and lack of joy.

What version of Traefik are you using?

Chart: traefik-35.0.0 App: v3.3.5

What is your environment & configuration?

# (paste your configuration here)

micork8s clean cluster. Set up with


microk8s kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/standard-install.yaml

microk8s kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/experimental-install.yaml



microk8s enable helm3

microk8s helm3 repo add traefik https://traefik.github.io/charts
microk8s helm3 repo update


microk8s enable dns
microk8s enable registry
microk8s enable metallb
microk8s enable storage
microk8s enable host-access

microk8s kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset.yml



cat > traefik-values.yaml << EOF
global:
  checkNewVersion: true
  sendAnonymousUsage: false

service:
  type: LoadBalancer

log:
  level: WARN

accessLogs:
  enabled: false

providers:
  kubernetesGateway:
    disableGRPCRoute: true
  kubernetesCRD:
    enabled: true
    allowCrossNamespace: true
    allowExternalNameServices: true
  kubernetesIngress: {}

additionalArguments:
  - "--providers.kubernetesGateway"

entryPoints:
  web:
    address: ":8000"

ports:
  web:
    port: 8000
    expose:
      default: true
    exposedPort: 80
    protocol: TCP
EOF


microk8s helm3 install traefik traefik/traefik -f traefik-values.yaml -n traefik --create-namesp

If applicable, please paste the log output in DEBUG level

2025-04-12T00:26:09Z INF Traefik version 3.3.5 built on 2025-03-31T08:45:53Z version=3.3.5                                                                          ││ 2025-04-12T00:26:09Z INF Stats collection is enabled.                                                                                                               ││ 2025-04-12T00:26:09Z INF Many thanks for contributing to Traefik's improvement by allowing us to receive anonymous information from your configuration.             ││ 2025-04-12T00:26:09Z INF Help us improve Traefik by leaving this feature on :)                                                                                      ││ 2025-04-12T00:26:09Z INF More details on: https://doc.traefik.io/traefik/contributing/data-collection/                                                              ││ 2025-04-12T00:26:09Z INF Label selector is: "" providerName=kubernetesgateway                                                                                       ││ 2025-04-12T00:26:09Z INF Creating in-cluster Provider client endpoint= providerName=kubernetesgateway                                                               ││ 2025-04-12T00:26:09Z INF Starting provider aggregator *aggregator.ProviderAggregator                                                                                ││ 2025-04-12T00:26:09Z INF Starting provider *acme.ChallengeTLSALPN                                                                                                   ││ 2025-04-12T00:26:09Z INF Starting provider *crd.Provider                                                                                                            ││ 2025-04-12T00:26:09Z INF Starting provider *ingress.Provider                                                                                                        ││ 2025-04-12T00:26:09Z INF Starting provider *gateway.Provider                                                                                                        ││ 2025-04-12T00:26:09Z INF label selector is: "" providerName=kubernetescrd                                                                                           ││ 2025-04-12T00:26:09Z INF Creating in-cluster Provider client providerName=kubernetescrd                                                                             ││ 2025-04-12T00:26:09Z INF ingress label selector is: "" providerName=kubernetes                                                                                      ││ 2025-04-12T00:26:09Z INF Creating in-cluster Provider client providerName=kubernetes                                                                                │
│ 2025-04-12T00:26:09Z INF Starting provider *traefik.Provider                                                                                                        │
│ 2025-04-12T00:26:09Z WRN Cross-namespace reference between IngressRoutes and resources is enabled, please ensure that this is expected (see AllowCrossNamespace opt │
│ 2025-04-12T00:26:09Z INF ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option) providerName=kubernete │
│ W0412 00:26:09.173047       1 reflector.go:561] k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.GRPCRoute: the server could not find the  │
│ E0412 00:26:09.173108       1 reflector.go:158] "Unhandled Error" err="k8s.io/[email protected]/tools/cache/reflector.go:243: Failed to watch *v1.GRPCRoute: failed │
│ W0412 00:26:10.740010       1 reflector.go:561] k8s.io/[email protected]/tools/cache/reflector.go:243: failed to list *v1.GRPCRoute: the server could not find the  │
@nmengin
Copy link
Contributor

nmengin commented Apr 14, 2025

Hello @edgework,

The issue seems to be linked to the helm chart, I move this issue to the helm-chart repository.

@nmengin nmengin transferred this issue from traefik/traefik Apr 14, 2025
@mloiseleur mloiseleur added kind/question Further information is requested and removed status/0-needs-triage labels Apr 24, 2025
@mloiseleur
Copy link
Member

This section is invalid:

microk8s kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/standard-install.yaml
microk8s kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/experimental-install.yaml

See upstream documentation for valid version. There is no need for you to do this, the correct CRDs are already in the chart (source)

BTW, this value does not exist:

providers:
  kubernetesGateway:
    disableGRPCRoute: true

There is a complete Gateway API example, see here.

Does that answer your question ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants