Had working azure kubernetes service (AKS) with mydomain.com. Moved webapp to another host.
I need to keep old.mydomain.com routing to old AKS webapp, but insted ingress always redirect to new server - mydomain.com.
How to make rule to still access existing azure kubernetes web app?
Used yaml file:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: old-web
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/cluster-issuer: letsencrypt
spec:
tls:
- hosts:
- old.mydomain.com
secretName: tls-secret
rules:
- host: old.mydomain.com
http:
paths:
- path: /
backend:
serviceName: webapp
servicePort: 80