Hi,
I am currently facing an issue with redirecting HTTP to HTTPS using Kong as an ingress controller via Kubernetes. I have followed the Kong documentation for setting up SSL, and the setup process has been completed successfully. The output I received matches the expected results as outlined in the Kong documentation.
However, during the configuration testing phase, I am not receiving the expected output. I have also configured the necessary annotations but am still unable to redirect HTTP to HTTPS . Below are the annotations I have set up:
apiVersion: networking.k8s .io/v1
kind: Ingress
metadata:
annotations:
test.test10.example.com/https-redirect-status-code: “301”
test.test10.example.com/protocols: https
konghq.com/strip-path: “true”
spec:
ingressClassName: kong
rules:
- http:
paths:- backend:
service:
name: wordpress
port:
number: 80
path: /
pathType: Prefix
tls:
- backend:
- hosts:
- test.test10.example.com
secretName: test.test10.example.com
- test.test10.example.com
Could you please assist me in resolving this issue?
Thank you.