Skip to content

Commit 535c50e

Browse files
committed
add ingress to helm chart
1 parent f117604 commit 535c50e

3 files changed

Lines changed: 36 additions & 2 deletions

File tree

helm-chart/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The chart is currently used in the following trainings. Ensure you do not introduce any breaking changes to it.
2+
3+
- in K1
4+
- in KKP

helm-chart/templates/ingress.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
if {{ Values.ingress.enabled }}
2+
apiVersion: networking.k8s.io/v1
3+
kind: Ingress
4+
metadata:
5+
name: my-app
6+
annotations:
7+
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
8+
labels:
9+
app: my-app
10+
spec:
11+
ingressClassName: 'nginx'
12+
tls:
13+
- hosts:
14+
- {{ .Values.domain }}
15+
secretName: letsencrypt-tls
16+
rules:
17+
- host: {{ .Values.domain }}
18+
http:
19+
paths:
20+
- pathType: Prefix
21+
path: /
22+
backend:
23+
service:
24+
name: my-app
25+
port:
26+
number: 80
27+
{{ end }}

helm-chart/values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ color: white
77
message: "Hello from the app installed via helm"
88
catMode: true
99

10+
deployment:
11+
replicas: 1
12+
1013
service:
1114
type: ClusterIP
1215

13-
deployment:
14-
replicas: 1
16+
ingress:
17+
enabled: false

0 commit comments

Comments
 (0)