Closed fabriziofiorucci closed 9 months ago
Hi @fabriziofiorucci, we have an issue open due to some mismatched versions in our docs. NGINX Gateway Fabric 1.0.0 doesn't support Gateway API v1.0.0. You need to install v0.8.1 of the Gateway API.
The note relating to k8s 1.23 and 1.24 is if you have installed v1.0.0 of the API and edge version of NGF.
Closed by https://github.com/nginxinc/nginx-gateway-fabric/pull/1287. Docs are now available at https://docs.nginx.com/nginx-gateway-fabric/
Describe the bug nginx-gateway-fabric on
Kubernetes 1.28.1
fails to work unless the admission server webhook is installed. Instructions at https://github.com/nginxinc/nginx-gateway-fabric/blob/main/docs/installation.md#deploy-nginx-gateway-fabric-from-manifests state:The webhook still seems to be required on k8s 1.28.1.
To Reproduce
Create the service (it's irrelevant whether ngf is published through LoadBalancer/NodePort):
Apply the "cafe" example: https://github.com/nginxinc/nginx-gateway-fabric/tree/main/examples/cafe-example
When applying
gateway.yaml
this is thrown:The fix is:
When the webhook is running, the
Gateway
andHTTPRoute
manifests can be applied as expectedExpected behavior Based on https://github.com/nginxinc/nginx-gateway-fabric/blob/main/docs/installation.md#deploy-nginx-gateway-fabric-from-manifests Kubernetes 1.28.1 shouldn't need the webhook but that doesn't seem to be the case.
Your environment
On-prem Kubernetes running on KVM virtual machines, OS is
Ubuntu 22.04.3 LTS
LoadBalancer, see the manifest above
kubectl -n nginx-gateway logs -l app=nginx-gateway -c nginx
kubectl -n nginx-gateway exec <gateway-pod> -c nginx -- nginx -T
NGINX configuration after running the webhook and successfully applying the "cafe" example:
Additional context Add any other context about the problem here. Any log files you want to share.