I deployed kibana on a kubernetes cluster the port-forward locally works, I can surf on kibana but when set my ingress configuration, it comes back with a 502 Bad Gateway. Please help!
This is my ingress configuration:
kind: Ingress
metadata:
name: kibana
namespace: quickstart
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
ingressClassName: nginx
rules:
- host: kibana.mydomain.com
http:
paths:
- backend:
service:
name: quickstart-kb-http
port:
number: 5601
path: /
pathType: Prefix
tls:
- hosts:
- kibana.mydomain.com
secretName: mydomain-secret
status:
loadBalancer:
ingress:
- ip: 10.55.55.55
Some logs from ingress:
2023/03/07 10:19:56 [error] 11977#11977: *278798777 upstream prematurely closed connection while reading response header from upstream, client: 10.41.41.41, server: kibana.mydomain.com, request: "GET /favicon.ico HTTP/2.0", upstream: "http://172.2.2.4:5601/favicon.ico", host: "kibana.mydomain.com", referrer: "https://kibana.mydomain.com/"
2023/03/07 10:19:56 [error] 11977#11977: *278798777 upstream prematurely closed connection while reading response header from upstream, client: 10.41.41.41, server: kibana.mydomain.com, request: "GET /favicon.ico HTTP/2.0", upstream: "http://172.2.2.4:5601/favicon.ico", host: "kibana.mydomain.com",
referrer: "https://kibana.mydomain.com/" 10.41.41.41 - - [07/Mar/2023:10:19:56 +0000] "GET /favicon.ico HTTP/2.0" 502 552 "https://kibana.mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/110.0.0.0 Safari/537.36" 146 0.018 [quickstart-quickstart-kb-http-5601] [] 172.2.2.4:5601, 172.2.2.4:5601, 172.2.2.4:5601 0, 0, 0 0.012, 0.004, 0.004 502, 502, 502 81a10e31ca6778cbfd738bae3195dabf
Kibana logs do not show anything other than Kibana is available (was degraded)
info messages.
this is my service running:
DESKTOP:~$ kubectl get services quickstart-kb-http
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
quickstart-kb-http ClusterIP 172.2.2.4 <none> 5601/TCP 1d1h
my pod:
DESKTOP:~$ kubectl get pod quickstart-kb-5261adb64f-wtq41
NAME READY STATUS RESTARTS AGE
quickstart-kb-5261adb64f-wtq41 1/1 Running 0 20h
As I mentioned, port forward locally works:
kubectl port-forward quickstart-kb-5261adb64f-wtq41 5601:5601
my certificates seem to be working, the browser accepts and deems valid the certificates
Thank in advance for your assistance
@ azasypkin?