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:
- Click the Project card on the Main page. You will be moved to the Project Dashboard page.
- Click the Build/Deployment > Kubernetes Deployment menu on the left. You will be moved to the Kubernetes Deployment page.Item
Description Name Displays the name of the blue/green deployment. Click to view detailed information. Cluster/Namespace Displays 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. Delete Deletes the current item. Table. Kubernetes Deployment Screen Blue/Green Deployment Card Items - 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:
- Click the Project card on the Main page. You will be moved to the Project Dashboard page.
- Click the Build/Deployment > Kubernetes Deployment menu on the left. You will be moved to the Kubernetes Deployment page.
- 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.
- 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 |
|---|---|
| Classification | Select development or operation
|
| Blue/Green Deployment Name | Enter the deployment name. |
| Operation | Select the release and Jenkins job
|
| Pre-operation | Select the release and Jenkins job
|
| K8S Cluster/Namespace | Displays the K8S cluster/namespace where the Helm release is installed. |
| Type Classification | Choose whether to use Ingress or Service to switch blue/green. |
| New Classification | Choose whether to create a new Ingress or Service or use an existing one. |
| Name | Enter the name
|
| 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. |
| Rules | Enter the information to be used in Ingress. |
| Item | Description |
|---|---|
| Type | Select the type of Kubernetes Service from the list
|
| 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. |
| Ports | Enter the information to be used in Service. |
Switching Blue/Green
To switch blue/green, follow these steps:
- Click the Blue/Green Switch button on the Deployment Details page. The Blue/Green Switch popup window will open.
- 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:
- 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.
- 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:
- 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.
- 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:
- 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.
- 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:
- Click the Modify button on the Deployment Details page. The Modify Blue/Green Deployment popup window will open.
- 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:
- Click the Delete button on the Deployment Details page. The Delete Blue/Green Deployment popup window will open.
- Select whether to execute the Ingress/Service Deletion Command and click the Confirm button to complete the deletion.
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.