My microservices use https to communicate and the ingress communicates via http to them.
I’ve already tried adding the Kong-ingress and it doesn’t work (yaml attached below)
I have 2 questions
- How do I make sure Kong uses https to communicate with my microservices? In the official K8s ingress, I just an annotation called :
nginx.ingress.kubernetes.io/backend-protocol
: "HTTPS"
- How do I enforce HTTP 1.1 instead of HTTP 2?
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: kong-ingress-configuration
upstream:
slots: 10
hash_on: none
hash_fallback: none
healthchecks:
threshold: 25
active:
concurrency: 10
healthy:
http_statuses:
- 200
- 302
interval: 0
successes: 0
http_path: "/api"
timeout: 1
unhealthy:
http_failures: 0
http_statuses:
- 429
interval: 0
tcp_failures: 0
timeouts: 0
passive:
healthy:
http_statuses:
- 200
successes: 0
unhealthy:
http_failures: 0
http_statuses:
- 429
- 503
tcp_failures: 0
timeouts: 0
proxy:
protocol: https