I’m having trouble with my Kubernetes setup. I’ve got several backend services behind one ingress controller. The main portal loads fine and shows as secure. But when I open certain apps from the portal menu, they show up as insecure. What’s weird is this makes the portal page insecure too, even without refreshing it.
This only happens with some apps. I’ve got multiple apps on some containers, and only certain ones cause this issue. It’s like if I open four secure apps, then a fifth insecure one, all of them become insecure.
I’ve tried a few things:
- Switched from port 8080 to 8443 with HTTPS
- Enabled crossContext in Tomcat
My ingress YAML looks something like this:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: 'myapp'
namespace: 'testenv'
annotations:
myapp.ingress.kubernetes.io/backend-path-prefix: '/'
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/ssl-redirect: 'true'
spec:
ingressClassName: nginx
rules:
- host: example.mycompany.net
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: main-portal
port:
number: 8443
# More paths here...
tls:
- hosts:
- example.mycompany.net
Any ideas what could be causing this? Is it a browser issue or something in my setup?