The following examples show how to configure a HelmBlueGreenCleanup step. For more information about HelmBlueGreenCleanup Pipeline steps, see HelmBlueGreenCleanup.
Full Pipeline Example
This pipeline shows how to deploy a Helm chart using the blue/green strategy, promote it to the Live role and uninstall the previous deployed version (if present).
HelmBlueGreenDeploy
pipelines: - name: helmBlueGreenDeployPipeline steps: - name: helmDeployStep type: HelmBlueGreenDeploy configuration: helmVersion: 3 namespace: app-namespace blueReleaseName: app-blue greenReleaseName: app-green roleServices: - blueReferenceName: app-blue-service greenReferenceName: app-green-service idleName: app-idle-service liveName: app-service integrations: - name: kubernetes_integration inputResources: - name: helmChartResource - name: helmRoleSwitch type: HelmBlueGreenRoleSwitch configuration: deployStep: helmDeployStep integrations: - name: kubernetes_integration inputSteps: - name: helmDeployStep - name: helmCleanup type: HelmBlueGreenCleanup configuration: deployStep: helmDeployStep integrations: - name: kubernetes_integration inputSteps: - name: helmRoleSwitch