The page has been translated by Gen AI.

Blue/Green Deployment

Users can perform blue/green deployments using Ingress or Service.

Adding a blue/green deployment means creating a new K8S Ingress or K8S Service that can replace two Helm releases with each other.

Only two Helm releases with the same Project, Cluster, Namespace, Release Type, Chart Name, Chart Version, and Development Classification can be linked.

Getting Started with Blue/Green Deployment

To start using blue/green deployment, follow these steps:

  1. Click the Project card on the Main page. You will be moved to the Project Dashboard page.
  2. Click the Build/Deployment > Kubernetes Deployment menu on the left. You will be moved to the Kubernetes Deployment page.
    Item
    Description
    NameDisplays the name of the blue/green deployment. Click to view detailed information.
    Cluster/NamespaceDisplays the cluster/namespace where the deployment is deployed.
    (Operation)Displays information about the currently operating Helm release.
    (Pre-operation)Displays the Helm release that will be the next version of the operation. When using blue/green replacement, the pre-operation becomes the operation.
    DeleteDeletes the current item.
    Table. Kubernetes Deployment Screen Blue/Green Deployment Card Items
  3. On the Kubernetes Deployment page, click the name of the blue/green deployment you want to start in the deployment list. You will be moved to the Deployment Details page.

Adding Blue/Green Deployment

To add a blue/green deployment, follow these steps:

Note
To add a blue/green deployment, you need two Helm releases installed using the same chart.
  1. Click the Project card on the Main page. You will be moved to the Project Dashboard page.
  2. Click the Build/Deployment > Kubernetes Deployment menu on the left. You will be moved to the Kubernetes Deployment page.
  3. Click the Add Blue/Green Deployment button at the top right of the Kubernetes Deployment page. The Add Blue/Green Deployment popup window will open.
  4. Enter the information in the Add Blue/Green Deployment popup window and click the Save button to complete the addition of the blue/green deployment.
Item
Description
ClassificationSelect development or operation
Blue/Green Deployment NameEnter the deployment name.
OperationSelect the release and Jenkins job
  • Release Name: Select the name of the currently operating Helm release from the list.
  • Jenkins Job: Select the Jenkins job to build/deploy the selected Helm release from the list
Pre-operationSelect the release and Jenkins job
  • Release Name: Select the name of the Helm release to be reflected in the next version of the operation from the list.
  • Jenkins Job: Select the Jenkins job to build/deploy the selected Helm release from the list
K8S Cluster/NamespaceDisplays the K8S cluster/namespace where the Helm release is installed.
Type ClassificationChoose whether to use Ingress or Service to switch blue/green.
New ClassificationChoose whether to create a new Ingress or Service or use an existing one.
NameEnter the name
  • New: Enter the name of the Ingress or Service.
  • Existing: Select an existing Ingress or Service from the list
Service (Operation)Select the Kubernetes Service related to the currently operating Helm release from the list.
Service (Pre-operation)Select the Kubernetes Service related to the Helm release to be reflected in the next version of the operation from the list.
RulesEnter the information to be used in Ingress.
Table. Input Items for Ingress Type when Adding Blue/Green Deployment
ItemDescription
TypeSelect the type of Kubernetes Service from the list
  • ClusterIP
  • NodePort
  • LoadBalancer
Deployment (Operation)Select the Kubernetes Deployment related to the currently operating Helm release from the list.
Deployment (Pre-operation)Select the Kubernetes Deployment related to the Helm release to be reflected in the next version of the operation from the list.
PortsEnter the information to be used in Service.
Table. Input Items for Service Type when Adding Blue/Green Deployment

Switching Blue/Green

To switch blue/green, follow these steps:

  1. Click the Blue/Green Switch button on the Deployment Details page. The Blue/Green Switch popup window will open.
  2. Click the Confirm button in the Blue/Green Switch popup window to complete the blue/green switch.
    • The Helm releases for operation and pre-operation are swapped with each other.
    • The switch history is added.

Checking YAML of Ingress or Service Used in Blue/Green Deployment

To check the YAML of the Ingress or Service used in blue/green, follow these steps:

  1. Click the View icon of Ingress YAML or Service YAML on the Deployment Details page. The Ingress YAML or Service YAML popup window will open.
  2. Check the contents in the Ingress YAML or Service YAML popup window and click the Confirm button to close.

Managing Jenkins Job of Blue/Green Deployment

Viewing Jenkins Job Log

To view the Jenkins job log, follow these steps:

  1. Click the Log button in the Jenkins job item of the desired release on the Deployment Details page. The Pipeline Log popup window will open.
  2. Check the log in the Pipeline Log popup window and click the Confirm button.

Running Jenkins Job

To run a Jenkins job, follow these steps:

  1. Click the Run button in the Jenkins job item of the desired release on the Deployment Details page. The Pipeline Run Parameter Input popup window will open.
  2. Enter or select each item in the Pipeline Run Parameter Input popup window and click the Confirm button to complete the Jenkins job run.

Modifying Blue/Green Deployment

To modify a blue/green deployment, follow these steps:

  1. Click the Modify button on the Deployment Details page. The Modify Blue/Green Deployment popup window will open.
  2. Modify the desired items in the Modify Blue/Green Deployment popup window and click the Save button to complete the modification.

Deleting Blue/Green Deployment

To delete a blue/green deployment, follow these steps:

  1. Click the Delete button on the Deployment Details page. The Delete Blue/Green Deployment popup window will open.
  2. Select whether to execute the Ingress/Service Deletion Command and click the Confirm button to complete the deletion.
Note

Ingress/Service Deletion Command

  • Selected: The Ingress or Service used in the blue/green deployment is actually deleted from the cluster.
  • Not selected: The Ingress or Service used in the blue/green deployment is not deleted and remains in the cluster.
Workload
Canary Deployment