You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/setup/install/ingress-setup.md
+78-21Lines changed: 78 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,33 @@
1
1
# Ingress Setup
2
2
3
-
## Enable Ingress During Installation
3
+
## Introduction
4
4
5
-
To configure Ingress for a Helm chart during installation or upgrade, you can use the `--set` flag to specify the desired Ingress settings. Below is a guide on how to add Ingress, including optional labels, annotations, and TLS settings.
5
+
If you wish to use [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) as a means to access the Devtron services available in your cluster, you can configure it either during the installation or after the installation of Devtron.
If you have successfully configured Ingress, refer [Post Ingress Setup](#enable-https-for-devtron).
12
+
13
+
---
14
+
15
+
## Enabling Ingress during Devtron Installation
16
+
17
+
If you are installing Devtron, you can enable Ingress either via [set flag](#using-set-flag) or by using [values.yaml](#using-valuesyaml) to specify the desired Ingress settings.
18
+
19
+
### Using set flag
20
+
21
+
You can use the `--set` flag to specify the desired Ingress settings.
22
+
23
+
Here, we have added 5 configurations you can perform depending on your requirements:
After Devtron is installed, Devtron is accessible through service `devtron-service`.
74
-
If you want to access Devtron through ingress, edit `devtron-service` and change the loadbalancer to ClusterIP. You can do this using `kubectl patch` command:
96
+
97
+
### Using ingress-values.yaml
98
+
99
+
As an alternative to the [set flag](#using-set-flag) method, you can enable Ingress using `ingress-values.yaml` instead.
100
+
101
+
Create an `ingress-values.yaml` file. You may refer the below format for an advanced ingress configuration which includes labels, annotations, secrets, and many more.
After Devtron is installed, Devtron is accessible through `devtron-service`. If you wish to access Devtron through ingress, you'll need to modify this service to use a ClusterIP instead of a LoadBalancer.
132
+
133
+
You can do this using the `kubectl patch` command:
After this, create ingress by applying the ingress yaml file.
81
-
You can use [this yaml file](https://github.com/devtron-labs/devtron/blob/main/manifests/yamls/devtron-ingress.yaml) to create ingress to access Devtron:
139
+
Next, create ingress to access Devtron by applying the `devtron-ingress.yaml` file. The file is also available on this [link](https://github.com/devtron-labs/devtron/blob/main/manifests/yamls/devtron-ingress.yaml). You can access Devtron from any host after applying this yaml.
82
140
83
-
```yaml
141
+
```yml
84
142
apiVersion: networking.k8s.io/v1
85
143
kind: Ingress
86
144
metadata:
@@ -119,9 +177,9 @@ spec:
119
177
pathType: ImplementationSpecific
120
178
```
121
179
122
-
You can access Devtron from any host after applying this yaml. For k8s versions <1.19, [apply this yaml](https://github.com/devtron-labs/devtron/blob/main/manifests/yamls/devtron-ingress-legacy.yaml):
180
+
For k8s versions <1.19, [apply this yaml](https://github.com/devtron-labs/devtron/blob/main/manifests/yamls/devtron-ingress-legacy.yaml):
123
181
124
-
```yaml
182
+
```yml
125
183
apiVersion: extensions/v1beta1
126
184
kind: Ingress
127
185
metadata:
@@ -149,7 +207,7 @@ spec:
149
207
150
208
Optionally, you also can access Devtron through a specific host by running the following YAML file:
151
209
152
-
```yaml
210
+
```yml
153
211
apiVersion: networking.k8s.io/v1
154
212
kind: Ingress
155
213
metadata:
@@ -189,9 +247,11 @@ spec:
189
247
pathType: ImplementationSpecific
190
248
```
191
249
250
+
---
251
+
192
252
## Enable HTTPS For Devtron
193
253
194
-
Once ingress setup for devtron is done and you want to run Devtron over `https`, you need to add different annotations for different ingress controllers and load balancers.
254
+
Once Ingress setup for Devtron is done and you want to run Devtron over `https`, you need to add different annotations for different ingress controllers and load balancers.
195
255
196
256
### 1. Nginx Ingress Controller
197
257
@@ -245,7 +305,4 @@ In case of AWS application load balancer, the following annotations need to be a
245
305
```
246
306
For an Ingress resource to be observed by AGIC (Application Gateway Ingress Controller) must be annotated with kubernetes.io/ingress.class: azure/application-gateway. Only then AGIC will work with the Ingress resource in question.
247
307
248
-
> Note: Make sure NOT to use port 80 with HTTPS and port 443 with HTTP on the Pods.
249
-
250
-
251
-
308
+
> Note: Make sure NOT to use port 80 with HTTPS and port 443 with HTTP on the Pods.
0 commit comments