I am using Kubernetes with service as ClusterIP and placing ingress in front of the service to expose this to outside the Kubernetes cluster.
Running ingress with https and to make it https, I created the secret and using the same in ingress.
kubectl create secret tls test-secret --key key --cert cert
Using netscalar in our Kubernetes cluster and hence, I am able to use X-Forward-For, Session affinity, Load balancing algorithms along with ingress.
Now, trying to make the service type as LoadBalancer so that I don't have to have ingress. I know, service type loadbalancer provides L4-loadbalancer and hence there won't be session affinity feature in the load balancer. Since it is okay for few services, I am trying to use this.
I would like to make the service HTTPS and I came across:
Here, we create TLS secret and using the reference in the deployment section and not in the service section. I am not sure how it works. Also, when I use https://servicename.namespace.svc.XXXXX.com in the browser getting the cert error.
My application is running as https and it needs keystore and truststore in a property file like,
ssl.trustore=PATH_TO_THE_FILE
ssl.keystore=PATH_TO_THE_FILE
I am confused - how can I make the service type loadbalancer https?