You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are going to implement Domain Name based routing using Ingress
We are going to use 3 applications for this.
Step-02: Review k8s Application Manifests
App1 Manifests
App2 Manifests
App3 Manifests
Step-03: Review Ingress Service Manifests
01-Ingress-DomainName-Based-Routing-app1-2-3.yml
Step-04: Deploy and Verify
# Deploy Apps
kubectl apply -R-f kube-manifests/
# List Pods
kubectl get pods
# List Services
kubectl get svc
# List Ingress
kubectl get ingress
# Verify Ingress Controller Logs
kubectl get pods -n ingress-basic
kubectl logs -f <pod-name> -n ingress-basic
# Verify External DNS pod to ensure record set got deleted
kubectl logs -f $(kubectl get po | egrep -o'external-dns[A-Za-z0-9-]+')
# Verify Record set got automatically deleted in DNS Zones# Template Command
az network dns record-set a list -g <Resource-Group-dnz-zones> -z <yourdomain.com>
# Replace DNS Zones Resource Group and yourdomain
az network dns record-set a list -g dns-zones -z kubeoncloud.com
# Delete Apps
kubectl delete-R-f kube-manifests/
# Verify Record set got automatically deleted in DNS Zones# Template Command
az network dns record-set a list -g <Resource-Group-dnz-zones> -z <yourdomain.com>
# Replace DNS Zones Resource Group and yourdomain
az network dns record-set a list -g dns-zones -z kubeoncloud.com