I have a working setup on GKE. Kong-ingress-controller 0.3 and Kong-proxy 1.0.0.
My last step is to setup HTTP so that clients (browser in this case) are always redirected to HTTPS. Both http and https work separately, but I would like to “disable” http by doing the redirect thing.
I have created ingress for my service with the following annotations (I tried my luck with force-ssl-redirect that should work with nginx, but it didn’t work for kong):
annotations: kubernetes.io/ingress.class:"kong" kong.ingress.kubernetes.io/force-ssl-redirect: "true" configuration.konghq.com: "kong-configuration"
I don’t see anything redirect related options in KongIngress (“kong-configuration” that I am referring from this ingress, and trying to explore things)
What is the proper way to setup http -> https redirect. Maybe using plugins? which one?