existing AKS cluster update to private cluster

kapil sharma 1 Reputation point
2022-05-31T19:06:54.757+00:00

I have an existing aks cluster and would like to change it into a private cluster so I don't have to pay for public IP address for each POD. I cannot change the existing cluster to private cluster. Is it possible as I don't want to delete the whole cluster and recreate it.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,963 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. vipullag-MSFT 25,616 Reputation points
    2022-06-01T07:56:27.967+00:00

    @kapil sharma

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    As mentioned in this document under limitation section converting an existing AKS cluster to private one is not supported. Private AKS cluster does not remove the Public IP address from the data plane load balancer. Only API server to data plane communication happens over private link.

    207356-image.png

    For your case, Pods does not have public IP Address. Looks like you are using Public Load Balancer type Services.
    You can try switching to use an ingress controller which will have one frontend public IP address associated on the Azure LB and configure different paths to route requests to your services internally from the ingress.
    Ref: https://learn.microsoft.com/en-us/azure/aks/ingress-internal-ip?tabs=azure-cli#create-an-ingress-controller

    If you don't need Public Connection to the AKS Services at all then you can switch to internal load balancer type service.

    Hope this helps.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


  2. kapil sharma 1 Reputation point
    2022-06-07T09:38:13.833+00:00

    please allow me this week as need to carry out testing.

    0 comments No comments