Try Devtron Enterprise!
Start Free Trial
LogoLogo
WebsiteDevtron demoGithub RepoJoin Discord
v0.6
v0.6
  • Introduction
  • Getting Started
  • Install Devtron
    • Install Devtron with CI/CD
    • Install Devtron with CI/CD and GitOps (Argo CD)
    • Install Devtron without Integrations
    • Install Devtron on Minikube, Microk8s, K3s, Kind, Cloud VMs
    • Demo on Popular Cloud Providers
    • Backup for Disaster Recovery
    • Uninstall Devtron
    • FAQs
  • Devtron Kubernetes Client
  • Configurations
    • Installation Configurations
    • Override Configurations
    • Ingress Setup
  • Global Configurations
    • Host URL
    • GitOps
    • Projects
    • Clusters & Environments
    • Git Accounts
    • Container/OCI Registry
    • Chart Repositories
    • Custom Charts
    • Authorization
      • SSO Login Services
        • Google
        • GitHub
        • GitLab
        • Microsoft
        • LDAP
        • OIDC
        • OpenShift
        • Example - Okta SSO
      • User Permissions
      • Permission Groups
      • API Tokens
    • Notifications
    • External Links
    • Catalog Framework
    • Scoped Variables
    • Pull Image Digest
    • Tags Policy
    • Lock Deployment Configuration
    • Image Promotion Policy
    • Filter Condition
    • Build Infra
  • Devtron Upgrade
    • Update Devtron from Devtron UI
    • 0.5.x-0.6.x
    • 0.4.x-0.5.x
    • 0.4.x-0.4.x
    • 0.3.x-0.4.x
    • 0.3.x-0.3.x
    • 0.2.x-0.3.x
  • Usage
    • Applications
      • Create a New Application
      • Clone an Existing Application
      • Deploy a Sample Application
      • App Configuration
        • Git Repository
        • Build Configuration
        • Base Deployment Template
          • Deployment
          • Rollout Deployment
          • Job and Cronjob
          • StatefulSets
        • GitOps Configuration
        • Workflow Editor
          • CI Pipeline
            • Pre-Build/Post-Build Stages
            • Override Build Configuration
          • CI Pipeline (Legacy)
          • CD Pipeline
        • ConfigMaps
        • Secrets
          • External Secret Operator (ESO)
            • AWS Secrets Manager
            • Google Secrets Manager
            • HashiCorp Vault
        • Protect Configuration
        • Environment Overrides
        • Deleting Application
      • Build and Deploy
        • Triggering CI
        • Triggering CD
        • Rollback Deployment
      • App Details
        • Debugging Deployment And Monitoring
        • Using Ephemeral Containers
        • Application Metrics
      • Overview
    • Jobs
      • Create a new job
      • Configurations
      • Workflow Editor
      • Trigger Job
      • Overview
    • Application Groups
    • Resource Browser
    • Charts
      • Charts Overview
      • Deploy & Observe
      • Examples
        • Deploying Mysql Helm Chart
        • Deploying MongoDB Helm Chart
      • Chart Group
    • Security
      • Security Scans
      • Security Policies
    • Bulk Edit
    • Integrations
      • Build and Deploy (CI/CD)
      • GitOps (Argo CD)
      • Vulnerability Scanning (Clair)
      • Notifications
      • Monitoring (Grafana)
    • Pipeline Plugins
      • Codacy
      • Copy Container Image
      • Dependency track - Maven & Gradle
      • Dependency track - NodeJS
      • Dependency track - Python
      • K6 Load Testing
      • Semgrep
      • SonarQube
      • SonarQube v1.1.0
  • Resources
    • Glossary
    • Troubleshooting
    • Use Cases
      • Devtron Generic Helm Chart To Run CronJob Or One Time Job
      • Connect SpringBoot with Mysql Database
      • Connect Expressjs With Mongodb Database
      • Connect Django With Mysql Database
      • Pull Helm Charts from OCI Registry
    • Telemetry Overview
    • Devtron on Graviton
    • Release Notes
Powered by GitBook
On this page
  • Manual Approval for Deployment
  • Requesting for Image Approval
  • Accepting Image Approval Request
  • Deploying Approved Image

Was this helpful?

Export as PDF
  1. Usage
  2. Applications
  3. Build and Deploy

Triggering CD

PreviousTriggering CINextRollback Deployment

Last updated 10 months ago

Was this helpful?

After the is complete, you can trigger the CD pipeline.

  1. Go to the Build & Deploy tab of your application and click Select Image in the CD pipeline.

    Figure 1: 'Select Image' Button
  2. Select an image to deploy and then click Deploy to trigger the CD pipeline.

    Figure 2: Selecting an Image for Deployment

However, if an image is already deployed, you can identify it by the tag Active on <Environment name>.

Manual Approval for Deployment

If no approved images are available or the current image is already deployed, you won't see any images for deployment when clicking Select Image.

Requesting for Image Approval

To request an image approval, follow these steps:

  1. Navigate to the Build & Deploy page, and click the Approval for deployment icon.

  2. Click the Request Approval button present on the image for which you want to request an approval and click Submit Request.

    The users you selected will receive an approval request via email. Any user with 'Image approver' permission alongwith access to the given application and given environment would be able to approve the image.

Extras

  • In case you wish to cancel the image approval request, you can do so from the Approval pending tab as shown in the below image.

  • If you've received an approval but no longer want the image to be deployable, you can let the approval expire.

Accepting Image Approval Request

By default, super-admin users are considered as the default approvers. Users who build the image and/or request for its approval, cannot self-approve it even if they have super-admin privileges.

To approve an image approval request, follow these steps:

  1. Go to the Build & Deploy page and click the Approval for deployment button.

  2. Switch to the Approval pending tab. Here, you will get a list of images that are awaiting approval.

  3. Click Approve followed by Approve Request button.

Deploying Approved Image

To deploy an approved image, follow these steps:

  1. Navigate to the Build & Deploy tab and click Select Image.

  2. You will find all the approved images listed under the Approved images section. From the list, you can select the desired image and deploy it to your environment.

  3. You can view the status of current deployment in the App Details tab.

The status initially appears as Progressing for approximately 1-2 minutes, and then gradually transitions to Healthy state based on the deployment strategy.

Here, our CD pipeline trigger was successful and the deployment is in Healthy state.

Figure 3: Currently Deployed Image

When for the deployment pipeline configured in the workflow, you are expected to request for an image approval before each deployment. Alternatively, you can deploy images that have already been approved once.

Figure 3: No Approved Image

Users need to have or above (along with access to the environment and application) to request for an image approval.

Figure 4: Approval Button
Figure 5: Requesting Approval

In case you have configured , you can directly choose the approver(s) from the list of approvers as shown below.

Figure 6: Choosing Approvers
Figure 7: Cancelling Request
Figure 8: Expiring an Approval

Users with Approver permission (for the specific application and environment) can also approve a deployment. This permission can be granted to users from present in .

In case or was configured in Devtron, and the user chose the approvers while raising an image approval request, the approvers would receive an email notification as shown below:

Figure 9: Email Notification to the Approver
Figure 10: Approval Button
Figure 11: List of Pending Approvals
Figure 12: Approving a Request

Users need to have or above (along with access to the respective environment and application) to select and deploy an approved image.

In case the super-admin has set the minimum number of approval to more than 1 (in ), you must wait for all approvals before deploying the image. In other words, partially approved image will not be eligible for deployment.

Figure 13: Approval Count
Figure 14: Select Image Button
Figure 15: List of Approved Images
Figure 16: 'App Details' Screen

To further diagnose the deployments,

click here
CI pipeline
Global Configurations
SES or SMTP on Devtron
SES
SMTP
Build & deploy permission
User Permissions
Build & deploy permission
manual approval is enabled
workflow