Share via

How do I retire and archive 2 Kubernetes services

JV-Drummond 0 Reputation points
2023-10-05T20:26:13.9833333+00:00

I have 2 Kubernetes services containing some applications. I want to retire them, but archive them in case I need to turn them back on. i.e. we no longer use the platform but may in the future. I want to save some $ by shutting it down, yet storing code etc. Thanks

Azure
Azure

A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.

{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,376 Reputation points Microsoft Employee Moderator
    2023-10-06T05:20:17.04+00:00

    @JV-Drummond

    Couple of options to save $.

    1. You can try to STOP the AKS cluster - All the worker Nodes will be de-allocated (That's where you can most of the $)
    2. Or you can only STOP the Node Pools i.e. Scale it to 0 nodes. This way Control Plane components will keep running

    If you are going either of those above methods , make sure to take the back-up of your YAML file configurations !

    If you have PVC disks with some data , you might want to take the snapshot of the disks !

    Please see the details of AKS STOP/START feature:

    https://learn.microsoft.com/en-us/azure/aks/start-stop-cluster?tabs=azure-cli

    https://techcommunity.microsoft.com/t5/apps-on-azure-blog/azure-kubernetes-service-aks-cost-optimization-techniques/ba-p/3652908

    Hope it helps ! Kindly let us know if you have any additional questions !

    Regards,

    Shiva.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.