20 Kubernetes Static Domain Name Update

Https secured django app into a kubernetes cluster.
Kubernetes static domain name. I thought this would be a common well documented case but boy was i wrong. But what if we want to expose an app to the outside world as a website under a static domain. This tutorial demonstrates how to expose your web application to the internet on a static external ip address and configure dns records of your domain name to point to your application.
For example if you have a pod with the fully qualified domain name busybox 1 default subdomain my namespace svc cluster domain example then by default the hostname command inside that pod returns busybox. A registered domain name. This article assumes that you have an existing aks cluster.
When a pod is configured to have fully qualified domain name fqdn its hostname is the short hostname. Luckily for us within a cluster we can reference pods by host name as defined in a spec. If you want to assign a specific ip address or retain an ip address for redeployed kubernetes services you can create and use a static public ip address.
The sethostnameasfqdn feature gate must be enabled for the api server. Kubernetes provides a robust level of dns support.