I am testing a kong ingress to the kubernetes dasboard. I noticed that when my request comes in as https, kong ingress receives it, but then sends on to the dashboard service as http…
[error] 22#0: *16441569 readv() failed (104: Connection reset by peer) while reading upstream, client: 172.16.44.192, server: kong, request: “GET /db HTTP/2.0”, upstream: "http://172.16.127.154:8443
How do I get kong to keep https?
Here is my ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dashboard
annotations:
kubernetes.io/ingress.class: kong
konghq.com/protocol: “https”
namespace: kubernetes-dashboard
spec:
rules:
- host:mydashboard.test.com
http:
paths:- path: /db
pathType: Prefix
backend:
service:
name: kubernetes-dashboard
port:
number: 443
- path: /db
And my service:
Name: kubernetes-dashboard
Namespace: kubernetes-dashboard
Labels: k8s-app=kubernetes-dashboard
Annotations:
Selector: k8s-app=kubernetes-dashboard
Type: ClusterIP
IP Families:
IP: 10.109.116.58
IPs: 10.109.116.58
Port: https 443/TCP
TargetPort: 8443/TCP
Endpoints: 172.16.127.154:8443
Session Affinity: None
Events: