I want to run my spring boot application (with ui) via following kubernetes ingress nginx configuration:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
tls:
- hosts:
- test123xxx.com
secretName: letsencrypt-staging
rules:
- host: test123xxx.com
http:
paths:
- path: "/?(.*)"
backend:
serviceName: application
servicePort: 8080
If i call test123xxx.com, it will redirected to test123xxx.com/login (becaouse of spring-boot security config) but i get Whitelabel Error Page with Http 404
I can run the application via kubectl port-forward without any problem.