Available in Classic and VPC
Deployment and deployment management describes how to deploy deployment scenarios created to deployment targets. Depending on the permission, a deployment can be done directly or by requesting deployment approval and subsequent approval.
Run deployment
To run the deployment, a customer account or a sub account with the doDeploy permission is required. For more information on permission setting instructions, see the Sub Account user guide.
If the deployment target is Ncloud Kubernetes Service and the deployment strategy is Rolling or blue/green, then a deployment can't be canceled midway. Deploy only when it is necessary.
To run a deployment, follow these steps:
-
From the NAVER Cloud Platform console, navigate to
> Services > Developer Tools > SourceDeploy. -
Select a deployment project that contains the scenario to deploy, and then click the [Go to deployment] button or click the deployment project name.
-
Click the scenario to deploy.
-
Check the deployment scenario's information and settings.
- Click the [OK] button to check the details for the deployment target.
- Click the deployment file's [Change settings] button to change the settings for the deployment file.
- Click the deployment commands's [Change settings] button to change deployment commands.
- Click the deployment path's [Change settings] button to change the deployment path.
- Click the [Show file] button to check the manifest file.
- Enable or disable the rollback on failed deployment.
Note- The different scenario settings that can be viewed and changed depend on the deployment target.
- Changes made to the settings on the page are not saved, and they are applied to this deployment only.
-
Check the SourceBand issue connection information for this deployment run.
- To connect this deployment run to a SourceBand issue, select Connection.
- To select a SourceBand issue to connect, click the [Select issue] button.
- In the SourceBand issue connection popup window, search for and add the issue to connect.
Note- To connect a SourceBand issue, you must apply for the SourceBand product.
- The SourceBand issue connection information is not saved and only applies to this deploy run.
- To connect this deployment run to a SourceBand issue, select Connection.
-
Click the [Start deployment] button.
- The deployment will start, and you'll be directed to the deployment result page.
- To cancel the deployment, click the [Cancel] button.
When deploying objects to the Ncloud Kubernetes Service cluster
- When updating objects, the update can only be done to the same namespace.
- SourceDeploy performs deployment according to the mechanism of the deployment strategy, regardless of the kind of manifest files.
- Pod, Deployment, ReplicaSet, ReplicationController, DaemonSet, and StatefulSet perform verification if deployment is conducted normally.
- If 1 of the manifest files fails among multiple manifests, then all objects are rolled back.
- For objects like Replica Set and Replication Controller, the images are not updated according to Kubernetes spec, even if they're updated. Make sure to check the following Kubernetes recommendations when you deploy.
Request deployment approval
To request a deployment approval, a sub account that doesn't have the doDeploy permission, but has the requestDeploy permission, is required. For more information on permission setting instructions, see the Sub Account user guide.
Deployment approval requests can't be canceled. Request approval only when a deployment is necessary.
To request deployment approval, follow these steps:
-
From the NAVER Cloud Platform console, navigate to
> Services > Developer Tools > SourceDeploy. -
Select a deployment project that contains the scenario to deploy, and then click the [Go to deployment] button or click the deployment project name.
-
Click the scenario to deploy.
-
Check the information and settings for the deployment scenario, and then click the [Request deployment approval] button.
- Click the [OK] button to check the details for the deployment target.
- Click the deployment file's [Change settings] button to change the settings for the deployment file.
- Click the deployment commands's [Change settings] button to change deployment commands.
- Click the deployment path's [Change settings] button to change the deployment path.
- Click the [Show file] button to check the manifest file.
- Enable or disable the rollback on failed deployment.
Note- The different scenario settings that can be viewed and changed depend on the deployment target.
- Changes made to the settings on the page are not saved, and they are applied to this deployment only.
-
Click the [OK] button in the deployment approval request popup window.
- A deployment approval will be requested to the user with the deployment approval permission (approveDeploy).
An email or SMS notification feature for deployment approval requests is not provided.
Approve/Reject deployment
To approve or reject a deployment approval request, a customer account or a sub account with the approveDeploy permission is required. For more information on permission setting instructions, see the Sub Account user guide.
To approve or reject a deployment approval request, follow these steps:
- From the NAVER Cloud Platform console, navigate to
> Services > Developer Tools > SourceDeploy. - Select a deployment project that contains the scenario to approve or reject a deployment, and then click the [Go to deployment] button or click the deployment project name.
- Click the [Result] tab.
- Click the [Approve] button of the scenario whose status is Deployment approval pending.
- Click the [Approve] or [Reject] button in the deployment approval popup window, according to whether you approve the scenario's deployment.
- The deployment will start.
- To cancel the deployment, click the [Cancel] button.
Check deployment result
To check the deployment result, follow these steps:
-
From the NAVER Cloud Platform console, navigate to
> Services > Developer Tools > SourceDeploy. -
Select a deployment project to check the result, and then click the [Go to deployment] button or click the deployment project name.
-
Click the [Result] tab.
-
Click the details for which you want to view the result.
- You can view the deployment summary and deployment log information.
- The logs are stored for up to 30 days.
CautionDeployment log is saved under the
/var/sourcedeploy/logpath. If you delete this path, then the deployment log can't be viewed. - You can view the deployment summary and deployment log information.
Deployment result page
The deployment result page is laid out as follows.

| Area | Description |
|---|---|
| ① Project name | Displays the deployment project's name. |
| ② Information of result list | The information displayed in the result list (deployment scenario name, deployment stage, deployment requested by, deployment request time, deployment status)
|
| ③ Deployment summary | The deployment summary information (deployment status, deployment request time, deployment end time, deployment file, canary analysis report, backup file) is displayed according to the deployment target.
|
| ④ Deployment log | Displays the logs collected in each deployment stage. |
- If the deployment is canceled, then the current stage proceeds until it is finished. Then the remaining stages that have yet to run are canceled.
- Auto Scaling Groups or servers created with blue/green deployment are not returned automatically in case of cancellation or deployment failure. If you no longer need the Auto Scaling Group or server, then return or delete it directly in the corresponding service.
- If you cancel a manual canary deployment, then the canary version will not be deployed, and the baseline and canary version applications will be closed.
View deployment stages in detail
The following shows the deployment stages for each deployment target:
| Server or Auto Scaling (default) |
Server name | Check deployment agent status. |
| Run before deployment | Run commands before deployment. | |
| Deploy files | Deploy files to the set path. | |
| Run after deployment | Run commands after deployment. | |
| Auto Scaling (blue/green) | Prepare to deploy | Perform preparations for blue/green deployment. |
| Deploy to a new group | Check deployment agent status for servers in a new Auto Scaling Group. | |
| Verify a new group | Verify a new Auto Scaling Group. |
|
| Finalize deployment | Finalize blue/green deployment. |
|
| Ncloud Kubernetes Service | Prepare to deploy | Prepare to deploy. |
| Deploy | Proceed with deployment. | |
| Object Storage | Prepare to deploy | Prepare to deploy. |
| Deploy | Proceed with deployment. |
- SourceDeploy provides a deployment command feature. You can add a validation procedure in the deployment process.
- When you run the validation command in the deployment command and it fails, returning an exit code, such as exit 1, will mark the deployment as failed.
- To understand the cause of failure, check the error log that is output from the validation process.
Check canary analysis report
You can view canary analysis reports if your deployment strategy is Canary and the analysis method is automatic.
Click Report under Canary analysis report on the Deployment result page. The canary analysis page will appear.
The canary analysis page is laid out as follows.

| Area | Description |
|---|---|
| ① Analysis stage |
|
| ② Analysis score | Analysis stage score is displayed.
|
| ③ Analysis information | Displays analysis time, analysis success score (Pass), and metric collection cycle (Step). |
| ④ Metrics information | Metric and weight set in Canary automatic analysis settings are displayed.
|
| ⑤ Analysis result list | Canary analysis result displayed
|
| ⑥ Element result | Element value of the data from the query result is displayed.
|
| ⑦ Deviation | Displays increase/decrease rate for values of canary compared to those of baseline. |
| ⑧ Result | Displays the result calculated with a deviation of Baseline-based canary.
|
- You can view canary analysis reports only within the retention cycle set in Prometheus.
- How to calculate analysis stage scores
- Metric score: (successful query results/all query results)*(metric weights)
<Example>:- Metric Name: success_rate1
Successful query results: 2 (#1, #3)
Total query results: 3 (#1, #2, #3)
Weight: 30
Metric score: (2/3)*30=20 - Metric Name: success_rate2
Successful query results: 1 (#1)
Total query results: 1 (#1)
Weight: 70
Metric score: (1/1)*70=70 - Analysis stage score: 20+70=90
- Metric Name: success_rate1
- Metric score: (successful query results/all query results)*(metric weights)