Skip to content

Commit b87d94e

Browse files
authored
Add minimal Helm chart for deploying with Argo CD
1 parent 8ec4344 commit b87d94e

File tree

5 files changed

+79
-0
lines changed

5 files changed

+79
-0
lines changed

chart/Chart.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v2
2+
name: website
3+
description: CrownLabs website Helm chart
4+
type: application
5+
version: 0.1.0
6+
appVersion: "0.1.0"

chart/templates/deployment.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: website
5+
spec:
6+
replicas: {{ .Values.replicas }}
7+
selector:
8+
matchLabels:
9+
app: website
10+
template:
11+
metadata:
12+
labels:
13+
app: website
14+
spec:
15+
automountServiceAccountToken: false
16+
containers:
17+
- name: website
18+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
19+
ports:
20+
- name: http
21+
containerPort: 80
22+
protocol: TCP
23+
resources:
24+
limits:
25+
cpu: 100m
26+
memory: 250Mi
27+
requests:
28+
cpu: 25m
29+
memory: 100Mi

chart/templates/ingress.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: website
5+
annotations:
6+
cert-manager.io/cluster-issuer: letsencrypt-production
7+
spec:
8+
rules:
9+
- host: {{ .Values.hostName }}
10+
http:
11+
paths:
12+
- path: /
13+
pathType: ImplementationSpecific
14+
backend:
15+
service:
16+
name: website
17+
port:
18+
name: http
19+
tls:
20+
- hosts:
21+
- {{ .Values.hostName }}
22+
secretName: website-cert

chart/templates/service.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: website
5+
labels:
6+
app: website
7+
spec:
8+
type: ClusterIP
9+
ports:
10+
- port: 80
11+
name: http
12+
protocol: TCP
13+
targetPort: http
14+
selector:
15+
app: website

chart/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
replicas: 2
2+
3+
hostName: crownlabs.polito.it
4+
5+
image:
6+
repository: crownlabs/website
7+
tag: latest

0 commit comments

Comments
 (0)