Skip to content

Commit 5bd3132

Browse files
committed
Merge branch 'main' into disable-API-update-if-disabled-from-UI
2 parents 8b90776 + 2c6ed70 commit 5bd3132

40 files changed

+398
-143
lines changed

charts/devtron/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: devtron-operator
3-
appVersion: 0.6.17
3+
appVersion: 0.6.18-rc.0
44
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
55
keywords:
66
- Devtron

charts/devtron/README.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ It packages third party components like
2222

2323
## How to use it
2424

25-
### Install with Helm
25+
### Install with Helm (Stable)
2626

27-
Run the following command to install the latest version of Devtron along with the CI/CD integration:
27+
Follow the given steps to install devtron stable release on your kubernetes cluster
2828

2929
```bash
3030
helm repo add devtron https://helm.devtron.ai
@@ -34,9 +34,34 @@ helm install devtron devtron/devtron-operator \
3434
--set installer.modules={cicd}
3535
```
3636

37+
### Install with Helm (Beta)
38+
39+
We also release beta versions of devtron every few days before the stable release for people who would like to explore and test beta features before everyone else. If you want to install a fresh devtron from beta release channel, use the chart in our official devtron repository.
40+
41+
This chart is currently not available on the official helm repository therefore you need to download it to install it.
42+
43+
```bash
44+
$ git clone [https://github.com/devtron-labs/devtron.git](https://github.com/devtron-labs/devtron.git)
45+
$ cd devtron/charts/devtron
46+
$ helm dependency up
47+
$ #modify values in values.yaml
48+
$ helm install devtron . --create-namespace --namespace devtroncd -f values.yaml
49+
```
50+
51+
To upgrade your existing devtron installation to beta, use helm upgrade.
52+
53+
```bash
54+
$ git clone [https://github.com/devtron-labs/devtron.git](https://github.com/devtron-labs/devtron.git)
55+
$ cd devtron/charts/devtron
56+
$ helm dependency up
57+
$ #modify values in values.yaml
58+
$ helm upgrade devtron . --reuse-values --namespace devtroncd -f devtron-bom.yaml
59+
```
60+
For more details about configuration see the [helm chart configuration](#configuration)
61+
3762
[Link to](https://docs.devtron.ai/install) more installation options for Devtron.
3863

39-
For more details on configuration, see the [Helm chart configuration](#configuration)
64+
> Note: There is no option to upgrade to beta on stack manager UI as of now and you may always see upgrade available for latest stable version using which you'll be moved to latest stable version available.
4065
4166
### Access Devtron dashboard
4267

charts/devtron/devtron-bom.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ global:
99
runAsNonRoot: true
1010

1111
installer:
12-
release: "v0.6.17"
12+
release: "v0.6.18-rc.0"
1313
image: "quay.io/devtron/inception"
1414
tag: "44b30917-185-13275"
1515

1616
components:
1717
dashboard:
18-
image: "quay.io/devtron/dashboard:a43e715d-325-13908"
18+
image: "quay.io/devtron/dashboard:85c476cb-325-14023"
1919
config:
2020
extraConfigs:
2121
USE_V2: "true"
2222
ENABLE_BUILD_CONTEXT: "true"
2323
devtron:
24-
image: "quay.io/devtron/hyperion:f45916a0-280-13927"
25-
cicdImage: "quay.io/devtron/devtron:f45916a0-434-13929"
24+
image: "quay.io/devtron/hyperion:2d790aa2-280-14032"
25+
cicdImage: "quay.io/devtron/devtron:2d790aa2-434-14033"
2626
argocdDexServer:
2727
image: "ghcr.io/dexidp/dex:v2.30.2"
2828
initContainer:
@@ -48,10 +48,10 @@ components:
4848
envVars:
4949
devtron:
5050
GIT_BRANCH: "main"
51-
GIT_HASH: "bc35eb7ecb5b604f4fc55cc1fa21f6fbbd59a180"
51+
GIT_HASH: "526ab899abef7d28038522c13e0bb59df17c404e"
5252
casbin:
5353
GIT_BRANCH: "main"
54-
GIT_HASH: "bc35eb7ecb5b604f4fc55cc1fa21f6fbbd59a180"
54+
GIT_HASH: "526ab899abef7d28038522c13e0bb59df17c404e"
5555

5656
argo-cd:
5757
global:
@@ -62,7 +62,7 @@ argo-cd:
6262

6363
security:
6464
imageScanner:
65-
image: "quay.io/devtron/image-scanner:b7873c95-334-13266"
65+
image: "quay.io/devtron/image-scanner:d554c0f8-334-14015"
6666

6767
notifier:
6868
image: "quay.io/devtron/notifier:6c7a356a-372-11107"

charts/devtron/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ global:
1010
installer:
1111
repo: "devtron-labs/devtron"
1212
# For Kubernetes version < 1.16, set release: legacy. You won't be able to upgrade Devtron unless you upgrade the K8s version to 1.16 or above.
13-
release: "v0.6.17" #You can use a branch name or a release tag name as a release, for gitee as source only "main" is supported as of now
13+
release: "v0.6.18-rc.0" #You can use a branch name or a release tag name as a release, for gitee as source only "main" is supported as of now
1414
image: quay.io/devtron/inception
1515
tag: 44b30917-185-13275
1616
source: "github" # Available options are github and gitee
@@ -55,12 +55,12 @@ components:
5555
extraConfigs:
5656
USE_V2: "true"
5757
ENABLE_BUILD_CONTEXT: "true"
58-
image: "quay.io/devtron/dashboard:a43e715d-325-13908"
58+
image: "quay.io/devtron/dashboard:85c476cb-325-14023"
5959
imagePullPolicy: IfNotPresent
6060

6161
devtron:
62-
image: "quay.io/devtron/hyperion:f45916a0-280-13927"
63-
cicdImage: "quay.io/devtron/devtron:f45916a0-434-13929"
62+
image: "quay.io/devtron/hyperion:2d790aa2-280-14032"
63+
cicdImage: "quay.io/devtron/devtron:2d790aa2-434-14033"
6464
imagePullPolicy: IfNotPresent
6565
customOverrides: {}
6666
serviceMonitor:
@@ -120,13 +120,13 @@ components:
120120
SCRIPT_LOCATION: "scripts/sql/"
121121
GIT_REPO_URL: "https://github.com/devtron-labs/devtron.git"
122122
DB_NAME: "orchestrator"
123-
GIT_HASH: "bc35eb7ecb5b604f4fc55cc1fa21f6fbbd59a180"
123+
GIT_HASH: "526ab899abef7d28038522c13e0bb59df17c404e"
124124
casbin:
125125
GIT_BRANCH: "main"
126126
SCRIPT_LOCATION: "scripts/casbin/"
127127
GIT_REPO_URL: "https://github.com/devtron-labs/devtron.git"
128128
DB_NAME: "casbin"
129-
GIT_HASH: "bc35eb7ecb5b604f4fc55cc1fa21f6fbbd59a180"
129+
GIT_HASH: "526ab899abef7d28038522c13e0bb59df17c404e"
130130

131131
# values for argocd integration
132132
argo-cd:
@@ -284,7 +284,7 @@ argo-cd:
284284
security:
285285
enabled: false
286286
imageScanner:
287-
image: "quay.io/devtron/image-scanner:b7873c95-334-13266"
287+
image: "quay.io/devtron/image-scanner:d554c0f8-334-14015"
288288
# Values for clair
289289
clair:
290290
enabled: false

docs/setup/install/install-devtron-helm-3.md

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Install Devtron using Helm3
1+
# Install Devtron using Helm
22

33
## Before you begin
44

55
Install [Helm3](https://helm.sh/docs/intro/install/).
66

7-
## Installing Devtron using Helm3
7+
## Installing Devtron using Helm
88

99
1. Add Devtron repository
1010
2. Install Devtron
@@ -17,7 +17,6 @@ This installation will use Minio for storing build logs and cache.
1717
helm repo add devtron https://helm.devtron.ai
1818

1919
helm install devtron devtron/devtron-operator --create-namespace --namespace devtroncd \
20-
-f https://raw.githubusercontent.com/devtron-labs/devtron/main/manifests/devtron-bom.yaml \
2120
--set installer.modules={cicd}
2221
```
2322
{% endtab %}
@@ -28,7 +27,6 @@ This installation will use AWS s3 buckets for storing build logs and cache. Refe
2827
```bash
2928
helm repo add devtron https://helm.devtron.ai
3029
helm install devtron devtron/devtron-operator --create-namespace --namespace devtroncd \
31-
-f https://raw.githubusercontent.com/devtron-labs/devtron/main/manifests/devtron-bom.yaml \
3230
--set installer.modules={cicd} \
3331
--set configs.BLOB_STORAGE_PROVIDER=S3 \
3432
--set configs.DEFAULT_CACHE_BUCKET=demo-s3-bucket \
@@ -45,7 +43,6 @@ Refer to the `Azure specific` parameters on the [Storage for Logs and Cache](./i
4543
```bash
4644
helm repo add devtron https://helm.devtron.ai
4745
helm install devtron devtron/devtron-operator --create-namespace --namespace devtroncd \
48-
-f https://raw.githubusercontent.com/devtron-labs/devtron/main/manifests/devtron-bom.yaml \
4946
--set installer.modules={cicd} \
5047
--set secrets.AZURE_ACCOUNT_KEY=xxxxxxxxxx \
5148
--set configs.BLOB_STORAGE_PROVIDER=AZURE \
@@ -69,6 +66,62 @@ helm install devtron devtron/devtron-operator --create-namespace --namespace dev
6966

7067
If you are planning to use Devtron for `production deployments`, please refer to our recommended overrides for [Devtron Installation](override-default-devtron-installation-configs.md).
7168

69+
70+
## Installing Devtron (Beta) using Helm
71+
72+
We also release beta versions of devtron every few days before the stable release for people who would like to explore and test beta features before everyone else. If you want to install a fresh devtron from beta release channel, use the chart in our official devtron repository.
73+
74+
This chart is currently not available on the official helm repository therefore you need to download it to install it.
75+
76+
1. Clone Devtron Repositry
77+
2. Upgrade Helm Dependency
78+
3. Install Devtron
79+
80+
```bash
81+
$ git clone [https://github.com/devtron-labs/devtron.git](https://github.com/devtron-labs/devtron.git)
82+
$ cd devtron/charts/devtron
83+
$ helm dependency up
84+
$ #modify values in values.yaml
85+
$ helm install devtron . --create-namespace --namespace devtroncd \
86+
--set installer.modules={cicd}
87+
88+
```
89+
{% tab title="Install with AWS S3 Buckets" %}
90+
This installation will use AWS s3 buckets for storing build logs and cache. Refer to the `AWS specific` parameters on the [Storage for Logs and Cache](./installation-configuration.md#storage-for-logs-and-cache) page.
91+
```bash
92+
$ git clone [https://github.com/devtron-labs/devtron.git](https://github.com/devtron-labs/devtron.git)
93+
$ cd devtron/charts/devtron
94+
$ helm dependency up
95+
$ #modify values in values.yaml
96+
$ helm install devtron . --create-namespace --namespace devtroncd \
97+
--set installer.modules={cicd}\
98+
--set configs.BLOB_STORAGE_PROVIDER=S3 \
99+
--set configs.DEFAULT_CACHE_BUCKET=demo-s3-bucket \
100+
--set configs.DEFAULT_CACHE_BUCKET_REGION=us-east-1 \
101+
--set configs.DEFAULT_BUILD_LOGS_BUCKET=demo-s3-bucket \
102+
--set configs.DEFAULT_CD_LOGS_BUCKET_REGION=us-east-1
103+
```
104+
105+
{% tab title="Install with Azure Blob Storage" %}
106+
This installation will use Azure Blob Storage for storing build logs and cache.
107+
Refer to the `Azure specific` parameters on the [Storage for Logs and Cache](./installation-configuration.md#storage-for-logs-and-cache) page.
108+
109+
```bash
110+
$ git clone [https://github.com/devtron-labs/devtron.git](https://github.com/devtron-labs/devtron.git)
111+
$ cd devtron/charts/devtron
112+
$ helm dependency up
113+
$ #modify values in values.yaml
114+
$ helm install devtron . --create-namespace --namespace devtroncd \
115+
--set installer.modules={cicd}\
116+
--set secrets.AZURE_ACCOUNT_KEY=xxxxxxxxxx \
117+
--set configs.BLOB_STORAGE_PROVIDER=AZURE \
118+
--set configs.AZURE_ACCOUNT_NAME=test-account \
119+
--set configs.AZURE_BLOB_CONTAINER_CI_LOG=ci-log-container \
120+
--set configs.AZURE_BLOB_CONTAINER_CI_CACHE=ci-cache-container
121+
```
122+
123+
> Note: There is no option to upgrade to beta on stack manager UI as of now and you may always see upgrade available for latest stable version using which you'll be moved to latest stable version available.
124+
72125
## Check Devtron installation status
73126

74127
The install commands start Devtron-operator, which takes about 20 minutes to spin up all of the Devtron microservices one by one. You can use the following command to check the status of the installation:

docs/setup/upgrade/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Devtron can be upgraded in one of the following ways:
1616
## Upgrade Devtron from the UI
1717

1818
- [Update Devtron from Devtron UI](upgrade-devtron-ui.md)
19+
- [Update Devtron to beta version](devtron-upgrade-to-beta.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Upgrading existing devtron to beta
2+
3+
If you want to check the current version of Devtron you are using, please use the following command.
4+
5+
```
6+
kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.data}' | grep "^LTAG=" | cut -d"=" -f2-
7+
```
8+
9+
### To upgrade your existing devtron installation to beta, use helm upgrade.
10+
11+
```bash
12+
$ git clone [https://github.com/devtron-labs/devtron.git](https://github.com/devtron-labs/devtron.git)
13+
$ cd devtron/charts/devtron
14+
$ helm dependency up
15+
$ #modify values in values.yaml
16+
$ helm upgrade devtron . --reuse-values --namespace devtroncd \
17+
-f devtron-bom.yaml
18+
```
19+
20+
> Note: There is no option to upgrade to beta on stack manager UI as of now and you may always see upgrade available for latest stable version using which you'll be moved to latest stable version available.

docs/user-guide/global-configurations/authorization/user-access.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ Devtron supports the following levels of access:
3636
| User Roles | View | Deploy | Edit | Delete |
3737
| :---: | :---: | :---: | :---: | :---: |
3838
| View Only | Yes | No | No | No |
39-
| Build and Deploy | Yes | No | No | No |
39+
| View and Edit | Yes | Yes | Yes | No |
4040
| Admin | Yes | Yes | Yes | Yes |
41-
| Manager | Yes | Yes | Yes | Yes |
4241
| Super Admin | Yes | Yes | Yes | Yes |
4342

4443
### 3. User Access

docs/user-guide/global-configurations/cluster-and-environments.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ To add cluster, go to the `Clusters & Environments` section of `Global Configura
1010

1111
![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/cluster-and-environments/add-clusters.png)
1212

13-
Provide the information in the following fields to add your kubernetes cluster:
13+
### Add Clusters Using Server URL & Bearer Token
14+
15+
16+
To add a Kubernetes cluster on Devtron using `server url` and the `bearer token`, provide the information in the following fields:
1417

1518
| Field | Description |
1619
| :--- | :--- |
1720
| `Name` | Enter a name of your cluster. |
1821
| `Server URL` | Server URL of a cluster.<br>Note: We recommended to use a [self-hosted URL](#benefits-of-self-hosted-url) instead of cloud hosted URL.</br> |
1922
| `Bearer Token` | Bearer token of a cluster. |
2023

24+
![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/cluster-and-environments/add-cluster-cred.jpg)
25+
2126
### Get Cluster Credentials
2227

2328
>**Prerequisites:** `kubectl` must be installed on the bastion.
@@ -30,15 +35,15 @@ You can get the **`Server URL`** & **`Bearer Token`** by running the following c
3035
{% tab title="k8s Cluster Providers" %}
3136
If you are using EKS, AKS, GKE, Kops, Digital Ocean managed Kubernetes, run the following command to generate the server URL and bearer token:
3237
```bash
33-
curl -o https://raw.githubusercontent.com/devtron-labs/utilities/main/kubeconfig-exporter/kubernetes_export_sa.sh \
38+
curl -O https://raw.githubusercontent.com/devtron-labs/utilities/main/kubeconfig-exporter/kubernetes_export_sa.sh \
3439
&& bash kubernetes_export_sa.sh cd-user devtroncd
3540
```
3641
{% endtab %}
3742
{% tab title="Microk8s Cluster" %}
3843
If you are using a **`microk8s cluster`**, run the following command to generate the server URL and bearer token:
3944

4045
```bash
41-
curl -o https://raw.githubusercontent.com/devtron-labs/utilities/main/kubeconfig-exporter/kubernetes_export_sa.sh && sed -i 's/kubectl/microk8s kubectl/g' \
46+
curl -O https://raw.githubusercontent.com/devtron-labs/utilities/main/kubeconfig-exporter/kubernetes_export_sa.sh && sed -i 's/kubectl/microk8s kubectl/g' \
4247
kubernetes_export_sa.sh && bash kubernetes_export_sa.sh cd-user \
4348
devtroncd
4449
```
@@ -47,6 +52,8 @@ devtroncd
4752

4853
![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/cluster-and-environments/generate-cluster-credentials.png)
4954

55+
56+
5057
### Benefits of Self-hosted URL
5158

5259
* Disaster Recovery:
@@ -58,6 +65,27 @@ devtroncd
5865
* On the other hand, migration for a self-hosted URL is easy as the URL is of single hosted domain independent of the cloud provider.
5966

6067

68+
### Add Clusters Using Kubeconfig
69+
70+
To add clusters using kubeconfig, follow these steps:
71+
72+
1. First, navigate to the global configurations menu, and then go to "clusters and environment" section.
73+
74+
2. Click on the `Add cluster` button. In the options provided, choose the `From kubeconfig` option.
75+
76+
3. Next, either paste the kubeconfig file or browse for it and select the appropriate file.
77+
78+
4. Afterward, click on the `Get cluster` button. This action will display the cluster details alongside the kubeconfig.
79+
80+
![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/cluster-and-environments/add-cluster-kubeconfig.jpg)
81+
82+
5. Select the desired cluster and click on `Save` to successfully add the cluster to Devtron.
83+
84+
![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/cluster-and-environments/kubeconfig-save-cluster.jpg)
85+
86+
87+
**Note:** Please ensure that the kubeconfig file you use has `admin permissions`. It is crucial for Devtron to have the necessary administrative privileges; otherwise, it may encounter failures or disruptions during deployments and other operations. Admin permission is essential to ensure the smooth functioning of Devtron and to prevent any potential issues that may arise due to insufficient privileges.
88+
6189
### Configure Prometheus (Enable Applications Metrics)
6290

6391
If you want to see application metrics against the applications deployed in the cluster, Prometheus must be deployed in the cluster. Prometheus is a powerful tool to provide graphical insight into your application behavior.

0 commit comments

Comments
 (0)