devtron-in-clustercd

by joaquinito2051

Helm chartv0.10.2App 0.1.0

Helm chart to deploy devtron-in-clustercd to run pre and post deployment in application/target cluster.

About this chart

Introduction

This helm chart to install devtron agent on target/application cluster by which we can run post/pre deployment pods on target/application cluster which are added on devtron cluster.

or

Devtron helm chart to deploy devtron-in-clustercd to run the post and pre deployment devtron agents on apllication cluster, not on devtron cluster

##Prerequisites

1. Install migration-incluster-cd helm chart on devtron cluster for particular target cluster.

migration-incluster-cd helm chart enable Execute in application Environment during post/pre deployment for target cluster on devtron UI.

Note:- migration-incluster-cd should be install on devtron-cluster

Install migration-incluster-cd with Helm

Run the following command to install the latest version of incluster migration integration:

helm repo add devtron https://helm.devtron.ai 

helm install incluster-migration devtron/migration-incluster-cd \
--namespace devtroncd \
--set cluster_name=prod-eks --set postgres_auth.secretName=devtron-secret

Here cluster_name is prod-eks , this cluster name should be added on devtron cluster .

2. Install devtron-in-clustercd helm chart on target cluster (this one).

3. Put ORCH_HOST key value pair in devtron-cm and bounce the devtron pod

Note:- There must be connectivity from target cluster to devtron cluster.

ORCH_HOST: http://test.devtron.com/orchestrator/webhook/msg/nats

Put ORCH_HOST value same as of CD_EXTERNAL_LISTENER_URL value which is passed in values.yaml .

4. Try to run post/pre deploymnet after enable Execute in application Environment for an environment of target cluster.

Deploy devtron-in-clustercd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has devtron-in-clustercd on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdevtron-in-clustercd is pinned at v0.10.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply