feat: add Kubernetes deployment with ArgoCD

- Add k8s/ manifests (Deployment, Service, Ingress)
- Use Kustomize for configuration
- ArgoCD application for GitOps deployment
- Traefik ingress with Let's Encrypt TLS
- Deploy script for CI/CD workflow

Deploys to: https://whalehunting.kube2.tricnet.de

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Richter
2026-02-04 23:28:55 +01:00
parent 576799ae0e
commit b0fb15fe7b
7 changed files with 178 additions and 0 deletions

45
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: whalehunting
namespace: whalehunting
labels:
app.kubernetes.io/name: whalehunting
app.kubernetes.io/component: web
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: whalehunting
template:
metadata:
labels:
app.kubernetes.io/name: whalehunting
app.kubernetes.io/component: web
spec:
containers:
- name: whalehunting
image: git.kube2.tricnet.de/admin/whalehunting:latest
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 10
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi