<p>I am new to azure. I created an azure acs with kubenetes by using the following config(part of the whole file). </p>

<pre><code>  - apiVersion: v1
    kind: Service
    metadata:
      name: my-web
    spec:
      type: LoadBalancer
      ports:
      - port: 80
        targetPort: 3000
      selector:
        app: my-web
</code></pre>

<p>The service can be visited, but only via IP address. There is no secondary dns(like: xxx.azurewebsite.com) generated. Currently, I use A record points to the ip address. It works, but I am afraid the ip address will be changed, and I have to manually change the dns A record. Just asking if there is a way to generate some stable dns for acs services?</p>

<blockquote>
  <p>Just asking if there is a way to generate some stable dns for acs
  services?</p>
</blockquote>

<p>We can via Azure portal to change the public IP address to static, in this way, restart the service will not change the IP.</p>

<p>But in Azure, if we <strong>delete</strong> the k8s service, the Public IP address will collected by Azure platform, and we will lose this IP address. For now, Azure does <strong>not</strong> support to keep the public IP address for k8s service.</p>
