Deploy Configuration

3 min read

Deploy Configuration #

Overview

Deploy Configuration defines how BuildPiper deploys a non-microservice (non-MS) service to the virtual machines (VMs) of a VM group. You configure it for each service environment from the NON MS DEPLOY tab. BuildPiper then uses this configuration every time BuildPiper deploys the service.

Deployments run as v3 jobs, which are fully custom and user-defined. You decide the target VMs, how the service is restarted, where the artifact is placed, how the rollout is phased and how the deployment is validated. These jobs are added to v3 templates and run in an orchestrated way within the CI/CD pipeline. Governance features such as access control, logging and audit trails keep every deployment secure and traceable.

1. Navigation #

Deploy Configuration: source figure 1

Figure 1: Navigation to Configure Non MS Deploy

  1. 1

    Log in to BuildPiper.

  2. 2

    Switch to User Portal.

  3. 3

    Click Application and select the application.

  4. 4

    Open Service Overview.

  5. 5

    Select the service.

  6. 6

    Select the NON MS DEPLOY tab.

  7. 7

    Click CONFIGURE NON MS DEPLOY.

2. Deploy Configuration Steps #

The Configure Non MS Deploy form has five steps.

No. Step What You Configure
01 Infra Details The VM group and VM labels to deploy to, the load balancer, the service port and the access domain.
02 Runtime Information How the service is stopped and started during deployment.
03 Deploy Information The artifact name and deploy location, clean-up after rolling/canary deployment.
04 Manage Configuration Provide Environment variables and configuration files for the service deployment.
05 Validate Probe The health check/probes that confirms the if service is healthy before considering the deployment is successful.

3. Infra Details #

Deploy Configuration: source figure 2

Figure 2: Infra Details

Swipe horizontally to view all columns →
Field Name Mandatory Description
Select VM Group Yes Select the VM group for the deployment. All VMs in this group become the target for deployment unless they are further filtered with the help of labels.
VM Label Yes Deployment is done in those VMs of the selected VM group that carry the labels you add here. Add one or more labels, then click a label’s monitor icon to see exactly which VMs it targets.
Load Balancer Required Yes Select Yes or No.
Select Load Balancer Yes Select the load balancer for the service.
Service Port Yes The port of the service.
Access Domain Yes Domain through which the service will be accessible externally.

4. Runtime Information #

Deploy Configuration: source figure 3

Figure 3: Runtime Information

Swipe horizontally to view all columns →
Field Name Mandatory Description
Restart service during deployment No Turn this on to restart the service during deployment.
Service Restart Method No Choose how the service should be restarted during deployment, either through custom commands (Manage using command) or by managing system-level services (Manage using system service).
Stop Command Yes Specify the shell command to stop the service during deployment.
Start Command Yes Specify the shell command to start the service during deployment.

5. Deploy Information #

Swipe horizontally to view all columns →
Field Name Mandatory Description
Renaming Required No Enable this option to specify a custom name for the artifact that will be used during deployment.
Provide Artifact Name Yes Select a name for the renamed artifact.
Artifact Deploy Location Yes Specify the target path or location where the artifact should be deployed.
Delete Artifact After Deployment No Delete the artifact from the local workspace after it has been successfully deployed. This helps reduce workspace storage usage.
Rolling Deployment No Enable phased deployment across target VMs using the configured rolling deployment percentage.
Rolling Percentage Yes Specify the percentage of target VMs to deploy in each phase. For example, if 10 VMs are targeted and the value is 50%, deployment will occur on 5 VMs in the first phase and the remaining 5 VMs in the next phase.

6. Manage Configuration #

Deploy Configuration: source figure 4

Figure 4: Manage Configurations

Swipe horizontally to view all columns →
Field Name Mandatory Description
Environment Variables – with vault integration Yes Choose Provide raw key value pairs or Select keys from a file. Under Add Keys, enter the key name and its value (secret path). Click ADD ANOTHER KEY to add more.
Add configuration file to a destination No Choose Upload Configuration File or Pick From Git.
File Path No Click Upload File to upload the configuration file.
Destination Path No Enter the path where the configuration file is placed.

7. Validate Probe #

Deploy Configuration: source figure 5

Figure 5: Validate Probe

Swipe horizontally to view all columns →
Field Name Mandatory Description
Initial Delay Seconds Yes Time to wait (in seconds) before starting the first probe after the container starts.
Period Seconds Yes Frequency (in seconds) at which the probe will be performed.
Success Threshold No Number of consecutive successful checks required to consider the probe successful.
Failure Threshold No Number of consecutive failed checks required to consider the probe failed.
Probe Parameters Yes Choose how to perform the probe: by hitting a URL (Using URL) or running a command (Using Command).
Enter URL Yes Enter the URL to probe. Shown when Using URL is selected.
Port Yes Enter the port to probe. Shown when Using URL is selected.
Command Yes Enter the command that will be executed to validate the container’s health. Shown when Using Command is selected.

Click SUBMIT to save the deploy configuration. The saved configuration appears on the NON MS DEPLOY tab and is marked IN USE.

Deploy Configuration: source figure 6

Figure 6: Deploy configuration saved