Add to ingress manifest in the metadata.annotations section:
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
Without the rewrite-target option, this is what would happen:
http://{{ ingress-service }}:{{ ingress-port }}/watch –> http://{{ watch-service }}:{{ port }}/watch
http://{{ ingress-service }}:{{ ingress-port }}/wear –> http://{{ wear-service }}:{{ port }}/wear
So, after you put the option it will become:
http://{{ ingress-service }}:{{ ingress-port }}/watch –> http://{{ watch-service }}:{{ port }}/
http://{{ ingress-service }}:{{ ingress-port }}/wear –> http://{{ wear-service }}:{{ port }}/