Skip to content
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

[BUG]: MacOS M1 503 error: Nginx ingress does not see endpoints #7

Open
1 task done
rive-n opened this issue Jan 1, 2024 · 0 comments
Open
1 task done

[BUG]: MacOS M1 503 error: Nginx ingress does not see endpoints #7

rive-n opened this issue Jan 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rive-n
Copy link

rive-n commented Jan 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

I've tried a lot of different things to fix that, but seems like nothing work for me. There is no 404 error, but instead there is 503 error because of some problems with Nginx ingress.

kubectl get endpoints -n default
NAME         ENDPOINTS             AGE
kubernetes   192.168.16.3:6443     69m
webadmin     10.244.162.137:5000   11m

kubectl get endpoints -n ingress-nginx
NAME                                 ENDPOINTS                        AGE
ingress-nginx-controller             10.244.82.4:443,10.244.82.4:80   69m
ingress-nginx-controller-admission   10.244.82.4:8443                 69m
webadmin                             <none>                           20m

kubectl logs --namespace ingress-nginx ingress-nginx-controller-b97bd6f5c-t57qg
-------------------------------------------------------------------------------
NGINX Ingress controller
  Release:       v1.9.5
  Build:         f503c4bb5fa7d857ad29e94970eb550c2bc00b7c
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.21.6

-------------------------------------------------------------------------------

W0101 00:14:46.945438      10 client_config.go:618] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0101 00:14:46.945674      10 main.go:205] "Creating API client" host="https://10.96.0.1:443"
I0101 00:14:46.950591      10 main.go:249] "Running in Kubernetes cluster" major="1" minor="26" git="v1.26.6" state="clean" commit="11902a838028edef305dfe2f96be929bc4d114d8" platform="linux/arm64"
I0101 00:14:47.149913      10 main.go:101] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem"
I0101 00:14:47.167527      10 ssl.go:536] "loading tls certificate" path="/usr/local/certificates/cert" key="/usr/local/certificates/key"
I0101 00:14:47.177336      10 nginx.go:260] "Starting NGINX Ingress controller"
I0101 00:14:47.183203      10 event.go:298] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"ingress-nginx", Name:"ingress-nginx-controller", UID:"55fc5630-e3a7-4545-8306-9166c03e1152", APIVersion:"v1", ResourceVersion:"635", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap ingress-nginx/ingress-nginx-controller
I0101 00:14:48.281032      10 store.go:440] "Found valid IngressClass" ingress="ingress-nginx/webadmin-ingress" ingressclass="_"
I0101 00:14:48.281613      10 event.go:298] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"ingress-nginx", Name:"webadmin-ingress", UID:"435f2805-620c-4a86-9c13-110b8727969c", APIVersion:"networking.k8s.io/v1", ResourceVersion:"5641", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync
I0101 00:14:48.282341      10 store.go:436] "Ignoring ingress because of error while validating ingress class" ingress="default/webadmin-ingress" error="no object matching key \"webadmin-ingress\" in local store"
I0101 00:14:48.282374      10 store.go:440] "Found valid IngressClass" ingress="secure/webadmin-ingress" ingressclass="_"
I0101 00:14:48.282475      10 event.go:298] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"secure", Name:"webadmin-ingress", UID:"429cbc19-37b4-4906-a656-3d0a4e7e788a", APIVersion:"networking.k8s.io/v1", ResourceVersion:"1367", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync
I0101 00:14:48.379422      10 nginx.go:303] "Starting NGINX process"
I0101 00:14:48.379620      10 leaderelection.go:245] attempting to acquire leader lease ingress-nginx/ingress-nginx-leader...
I0101 00:14:48.379941      10 nginx.go:323] "Starting validation webhook" address=":8443" certPath="/usr/local/certificates/cert" keyPath="/usr/local/certificates/key"
W0101 00:14:48.380153      10 controller.go:1214] Service "secure/webadmin" does not have any active Endpoint.
W0101 00:14:48.380195      10 controller.go:1214] Service "ingress-nginx/webadmin" does not have any active Endpoint.
I0101 00:14:48.380322      10 controller.go:190] "Configuration changes detected, backend reload required"

Default configuration:

kubectl get endpoints -n ingress-nginx
NAME                                 ENDPOINTS                        AGE
ingress-nginx-controller             10.244.82.1:443,10.244.82.1:80   2m52s
ingress-nginx-controller-admission   10.244.82.1:8443                 2m52s
kubectl get endpoints -n default
NAME         ENDPOINTS           AGE
kubernetes   192.168.16.3:6443   3m41

I also observed some problems with the webadmin ingress patch because of the invalid certificate.

Steps To Reproduce

You need to start kind cluster on any m1 macbook

Additional Information

No response

@rive-n rive-n added the bug Something isn't working label Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant