I'm configuring ingress to pass requests to backends based on path. Only service-external needs to use HTTPS. If I add annotation nginx.ingress.kubernetes.io/backend-protocol: 'HTTPS', ingress will use https for both backends, which is not desired. Is there anyway to use https for selected backends only?
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: 'true'
tls:
- secretName: my-tls
hosts:
- myhost.com
rules:
- host: myhost.com
paths:
- path: /external/
serviceName: service-external
servicePort: 443
- path: /
serviceName: service-api