l7mp / stunner

A Kubernetes media gateway for WebRTC. Contact: info@l7mp.io
https://l7mp.io
MIT License
752 stars 58 forks source link

Stunner gateway operator can't be started #117

Closed tyohan closed 10 months ago

tyohan commented 10 months ago

I'm using MicroK8s with K8s v1.28 and installing the latest version of Stunner, but the operator manager keeps backoff and fails to start. The pod logs are below:

2024-01-29T15:49:02.292718063Z  INFO    setup   endpoint discovery  {"state": true}
2024-01-29T15:49:02.292770239Z  INFO    setup   dataplane mode  {"mode": "managed"}
2024-01-29T15:49:02.292774066Z  INFO    setup   config discovery server {"addr": "10.1.0.117:13478"}
2024-01-29T15:49:02.292775909Z  INFO    setup   setting up Kubernetes controller manager
2024-01-29T15:49:02.29301964Z   INFO    setup   setting up STUNner config renderer
2024-01-29T15:49:02.293023577Z  INFO    setup   setting up updater client
2024-01-29T15:49:02.29302495Z   INFO    setup   setting up CDS server   {"address": "10.1.0.117:13478"}
2024-01-29T15:49:02.293028646Z  INFO    setup   setting up operator
2024-01-29T15:49:02.293078348Z  INFO    setup   starting renderer thread
2024-01-29T15:49:02.293087134Z  INFO    setup   starting updater thread
2024-01-29T15:49:02.293088828Z  INFO    setup   starting config discovery server
2024-01-29T15:49:02.293137978Z  INFO    setup   starting operator thread
2024-01-29T15:49:02.293153858Z  INFO    gatewayconfig-controller    created gatewayconfig controller
2024-01-29T15:49:02.293157795Z  INFO    gatewayconfig-controller    watching gatewayconfig objects
2024-01-29T15:49:02.293153868Z  INFO    cds-server  Starting CDS server {"address": "10.1.0.117:13478"}
2024-01-29T15:49:02.29639182Z   INFO    gatewayconfig-controller    watching secret objects
2024-01-29T15:49:02.296416326Z  INFO    dataplane-controller    created dataplane controller
2024-01-29T15:49:02.296421375Z  INFO    dataplane-controller    watching dataplane objects
2024-01-29T15:49:02.296427045Z  INFO    gateway-controller  created gateway controller
2024-01-29T15:49:02.296431604Z  INFO    gateway-controller  watching gatewayclass objects
2024-01-29T15:49:02.29643516Z   INFO    gateway-controller  watching gateway objects
2024-01-29T15:49:02.296721469Z  ERROR   setup   problem running operator    {"error": "cannot register gateway controller: failed to get API group resources: unable to retrieve the complete list of server APIs: gateway.networking.k8s.io/v1: the server could not find the requested resource"}

I was updating from the previous install of Stunner because I saw this is a stable version. The previous install was working as expected. I was upgrading the Stunner by deleting the resources, uninstalling the helm chart, updating the repo, and installing everything following the documentation.

tyohan commented 10 months ago

I fixed this by reinstalling the gateway API CRDS I think it's good to remind on the documentation about upgrading from the previous version to 0.17.0