Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: 1.14
Cloud being used: EKS
Helllo all , we started using K8S and currently working to convert our Dev Server to microcontainers. Part of the process, we have a web portal and I am trying to reroute the URL but the destination path has special charaters…like this “?”. Here is what I am trying to do.
dev.alpha.example.com --> Dev-POD/portal/account/login?connectName=Alpha"
Here is my YAML file but the page redirects to NGINX HOME page and I am trying to see how to can appened the complete path. Any help is appreciated.
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: dev-ingress
namespace: devnamespace
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /portal/account/login?connectName=Alpha
kubernetes.io/ingress.class: “nginx”
spec:
rules:
- host: dev.alpha.example.com
http:
paths:- path: /
backend:
serviceName: svc-dev
servicePort: 80
- path: /