I want to allow traffic to look like the following:
external client https request (e.g. https://my-app-out-side-cluster.com) -> inside the cluster (terminate tls) and change to http (e.g. http://my-app-out-side-cluster.com) -> service outside the cluster
I have followed this post to configure my Ingress and External traffic, however, since my service outside the cluster is http, I get an SSL error when making a request with https. Changing the request to http works, however, this is not desired.
My question is, is there a way to
- Terminate SSL in the Ingress (using the ingress controller)
- Redirect traffic to the service outside the cluster listening on http ?
---
kind: Service
apiVersion: v1
metadata:
name: my-external-service
spec:
type: ExternalName
externalName: my-app-out-side-cluster.com
---
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: kong
spec:
controller: ingress-controllers.konghq.com/kong
---
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: my-ingress
namespace: kong
annotations:
konghq.com/protocols: "https"
spec:
ingressClassName: kong
tls:
- secretName: my-secret
hosts:
- my-app-out-side-cluster.com
rules:
- host: my-app-out-side-cluster.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: my-external-service
port:
number: 80