Initial Helm and Kargo setup

This commit is contained in:
5vl
2026-09-10 13:57:05 +02:00
commit 9af750af3f
16 changed files with 576 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-web-content
data:
index.html: |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{ .Values.environment }} - kub-web-test</title>
</head>
<body>
<h1>{{ .Values.environment }}</h1>
<p>kub-web-test deployed with Helm, Argo CD and Kargo.</p>
</body>
</html>
+36
View File
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-web
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Release.Name }}-web
template:
metadata:
labels:
app: {{ .Release.Name }}-web
spec:
containers:
- name: nginx
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.port }}
volumeMounts:
- name: web-content
mountPath: /usr/share/nginx/html
readOnly: true
volumes:
- name: web-content
configMap:
name: {{ .Release.Name }}-web-content
+20
View File
@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-web
spec:
ingressClassName: traefik
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- path: {{ .Values.ingress.path }}
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-web
port:
number: {{ .Values.service.port }}
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-web
spec:
selector:
app: {{ .Release.Name }}-web
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
type: ClusterIP