nginxinc / nginx-gateway-fabric

NGINX Gateway Fabric provides an implementation for the Gateway API using NGINX as the data plane.
Apache License 2.0
502 stars 97 forks source link

Stuck at step 5 of the installation steps #336

Closed poneding closed 1 year ago

poneding commented 1 year ago

Describe the bug I plan to use nginx-gateway for test, but i am stuck at step 5 of the installation steps, anybody help me? (ps: wonderful project!)

To Reproduce

kubectl apply -f deploy/manifests/gatewayclass.yaml

Error from server (InternalError): error when creating "deploy/manifests/gatewayclass.yaml": Internal error occurred: failed calling webhook "validate.gateway.networking.k8s.io": Post "https://gateway-api-admission-server.gateway-system.svc:443/validate?timeout=10s": dial tcp 10.111.55.121:443: connect: connection refused

Aha! Link: https://nginx.aha.io/features/NKG-21

pleshakov commented 1 year ago

Hi @srcio

As part of the standard Gateway API installation -- https://gateway-api.sigs.k8s.io/guides/#install-standard-channel -- it installs the weebhook (https://github.com/kubernetes-sigs/gateway-api/tree/v0.5.1/config/webhook) . The error dial tcp 10.111.55.121:443: connect: connection refused might indicate that something went wrong with the webhook -- it is not running.

At the same time, to try NGINX Kubernetes Gateway, it is not necessary to deploy the webhook -- so you can just deploy CRDs without the webhook, as described in step 2 https://github.com/nginxinc/nginx-kubernetes-gateway/blob/main/docs/installation.md#deploy-nginx-kubernetes-gateway

poneding commented 1 year ago

Hi @pleshakov

it's worked. thx for your help. 😘