AKS, HELM chart and Cloud Native Application Bundle

Testa 551 Reputation points
2023-09-14T16:32:33.6966667+00:00

We are creating AKS offers that are required with Helm Chart and Cloud Native Application Bundle.

If a customer face any issue to deploy or upgrade, we want to make sure that it rolled back to the previous version for upgrade and it avoid the partial installation for the new one.

In helm, we can achieve these by using the atomic flag and rollback. Can these flags be used in Helm chart and Cloud Native Application Bundle deployment as well? Whether we need to use CNAB or not, we can write yaml files and templates in the same way?

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,849 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prrudram-MSFT 21,881 Reputation points
    2023-09-18T17:15:37.8866667+00:00

    Hello @Testa

    You can use the atomic flag and rollback feature in both Helm charts and Cloud Native Application Bundle (CNAB) deployments.

    In Helm, the atomic flag is used to ensure that the release is installed or upgraded atomically. This means that if the installation or upgrade fails, the release is rolled back to the previous version. You can use the --atomic flag with the helm install or helm upgrade command to enable this feature.

    Similarly, in CNAB, you can use the atomic flag in the bundle definition file to ensure that the installation or upgrade is atomic. If the installation or upgrade fails, the bundle is rolled back to the previous version. You can also use the rollback feature in CNAB to specify the rollback behavior in case of a failure.

    Regarding your second question, yes, you can write YAML files and templates in the same way for both Helm charts and CNAB deployments. Both Helm and CNAB use YAML files to define the deployment configuration and templates to define the resources to be deployed.

    However, there are some differences between Helm and CNAB in terms of their architecture and features. Helm is a package manager for Kubernetes, while CNAB is a specification for packaging and deploying distributed applications. CNAB provides more flexibility and portability compared to Helm, as it can be used to deploy applications across multiple platforms and environments.

    <If this does answer your question, please accept it as the answer as a token of appreciation.>

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful