Skip to content

Instantly share code, notes, and snippets.

@krc
Created January 20, 2024 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krc/23d6bc4d9649ed855949e743a68b8f17 to your computer and use it in GitHub Desktop.
Save krc/23d6bc4d9649ed855949e743a68b8f17 to your computer and use it in GitHub Desktop.
ingress-nginx logs error
-------------------------------------------------------------------------------
NGINX Ingress controller
Release: v1.9.5
Build: f503c4bb5fa7d857ad29e94970eb550c2bc00b7c
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: nginx/1.21.6
-------------------------------------------------------------------------------
W0120 00:18:07.415615 6 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0120 00:18:07.415749 6 main.go:205] "Creating API client" host="https://10.96.0.1:443"
I0120 00:18:07.422343 6 main.go:249] "Running in Kubernetes cluster" major="1" minor="28" git="v1.28.5" state="clean" commit="506050d61cf291218dfbd41ac93913945c9aa0da" platform="linux/amd64"
I0120 00:18:07.558814 6 main.go:101] "SSL fake certificate created" file="/etc/ingress-controller/ssl/default-fake-certificate.pem"
I0120 00:18:07.572781 6 ssl.go:536] "loading tls certificate" path="/usr/local/certificates/cert" key="/usr/local/certificates/key"
I0120 00:18:07.583062 6 nginx.go:260] "Starting NGINX Ingress controller"
I0120 00:18:07.592612 6 event.go:298] Event(v1.ObjectReference{Kind:"ConfigMap", Namespace:"ingress-nginx", Name:"ingress-nginx-controller", UID:"0899f1db-7b2a-4eb3-a52e-513a9f18fe66", APIVersion:"v1", ResourceVersion:"277468", FieldPath:""}): type: 'Normal' reason: 'CREATE' ConfigMap ingress-nginx/ingress-nginx-controller
I0120 00:18:08.785457 6 nginx.go:303] "Starting NGINX process"
I0120 00:18:08.787714 6 nginx.go:323] "Starting validation webhook" address=":8443" certPath="/usr/local/certificates/cert" keyPath="/usr/local/certificates/key"
I0120 00:18:08.787789 6 leaderelection.go:245] attempting to acquire leader lease ingress-nginx/ingress-nginx-leader...
I0120 00:18:08.788528 6 controller.go:190] "Configuration changes detected, backend reload required"
I0120 00:18:08.804354 6 status.go:84] "New leader elected" identity="ingress-nginx-controller-76df688779-z7tcx"
I0120 00:18:08.845953 6 controller.go:210] "Backend successfully reloaded"
I0120 00:18:08.846014 6 controller.go:221] "Initial sync, sleeping for 1 second"
I0120 00:18:08.846325 6 event.go:298] Event(v1.ObjectReference{Kind:"Pod", Namespace:"ingress-nginx", Name:"ingress-nginx-controller-76df688779-mmxmk", UID:"4745884d-6d00-43af-a07d-ed3711675dad", APIVersion:"v1", ResourceVersion:"359784", FieldPath:""}): type: 'Normal' reason: 'RELOAD' NGINX reload triggered due to a change in configuration
I0120 00:18:47.525286 6 leaderelection.go:255] successfully acquired lease ingress-nginx/ingress-nginx-leader
I0120 00:18:47.525475 6 status.go:84] "New leader elected" identity="ingress-nginx-controller-76df688779-mmxmk"
I0120 00:23:00.734283 6 store.go:440] "Found valid IngressClass" ingress="default/nginxsvc" ingressclass="nginx"
I0120 00:23:00.734995 6 controller.go:190] "Configuration changes detected, backend reload required"
I0120 00:23:00.738502 6 event.go:298] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"default", Name:"nginxsvc", UID:"0c123a9c-794e-44fc-b4ab-33cdc0ad29ef", APIVersion:"networking.k8s.io/v1", ResourceVersion:"360627", FieldPath:""}): type: 'Normal' reason: 'Sync' Scheduled for sync
I0120 00:23:00.805765 6 controller.go:210] "Backend successfully reloaded"
I0120 00:23:00.806330 6 event.go:298] Event(v1.ObjectReference{Kind:"Pod", Namespace:"ingress-nginx", Name:"ingress-nginx-controller-76df688779-mmxmk", UID:"4745884d-6d00-43af-a07d-ed3711675dad", APIVersion:"v1", ResourceVersion:"359784", FieldPath:""}): type: 'Normal' reason: 'RELOAD' NGINX reload triggered due to a change in configuration
2024/01/20 00:27:59 [error] 61#61: *2492 connect() failed (113: Host is unreachable) while connecting to upstream, client: ::1, server: nginxsvc.info, request: "GET / HTTP/1.1", upstream: "http://10.17.184.163:80/", host: "nginxsvc.info:8080"
2024/01/20 00:28:00 [error] 61#61: *2492 connect() failed (113: Host is unreachable) while connecting to upstream, client: ::1, server: nginxsvc.info, request: "GET / HTTP/1.1", upstream: "http://10.17.184.163:80/", host: "nginxsvc.info:8080"
::1 - - [20/Jan/2024:00:28:01 +0000] "GET / HTTP/1.1" 502 150 "-" "curl/7.61.1" 82 3.078 [default-nginxsvc-80] [] 10.17.184.163:80, 10.17.184.163:80, 10.17.184.163:80 0, 0, 0 1.031, 1.024, 1.024 502, 502, 502 ca443635e154e19f0d833223f85fd02b
2024/01/20 00:28:01 [error] 61#61: *2492 connect() failed (113: Host is unreachable) while connecting to upstream, client: ::1, server: nginxsvc.info, request: "GET / HTTP/1.1", upstream: "http://10.17.184.163:80/", host: "nginxsvc.info:8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment