Azure Kubernetes Ingress do not route to subdomain

4/23/2020

Had working azure kubernetes service (AKS) with mydomain.com. Moved webapp to another host.

  • Added DNS A entries:
  • mydomain.com -> new server IP;
  • old.mydomain.com -> old azure public IP;

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
-- Arvis
azure
azure-kubernetes
nginx-ingress

0 Answers