Add a helm chart
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
2025-12-30 22:48:44 +01:00
parent c3ab2ba65c
commit 6ce73c6a93
8 changed files with 180 additions and 1 deletions

103
helm/values.yaml Normal file
View File

@@ -0,0 +1,103 @@
---
shortcuts:
hostname: badhouseplants.net
base:
workload:
kind: Deployment
strategy:
type: RollingUpdate
initContainer:
faircamp:
image:
registry: gitea.badhouseplants.net
repository: badhouseplants/faircamp-site
tag: latest
pullPolicy: Always
volumeMounts:
storage:
site:
path: /data/.faircamp_build
containers:
nginx:
image:
registry: registry.hub.docker.com
repository: nginxinc/nginx-unprivileged
tag: latest
pullPolicy: Always
ports:
main:
- nginx
volumeMounts:
storage:
site:
path: /usr/share/nginx/html
livenessProbe:
httpGet:
path: /
port: 8080
httpHeaders:
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /
port: 8080
httpHeaders:
initialDelaySeconds: 3
periodSeconds: 3
ingress:
main:
enabled: true
class: traefik
rules:
- host: '{{ .Values.shortcuts.hostname }}'
http:
paths:
- backend:
service:
name: '{{ include "chart.fullname" $ }}-main'
port:
number: 8080
path: /
pathType: Prefix
tls:
- hosts:
- '{{ .Values.shortcuts.hostname }}'
secretName: '{{ .Values.shortcuts.hostname }}'
extraVolumes:
logs:
emptyDir: {}
services:
main:
enabled: true
type: ClusterIP
ports:
nginx:
port: 8080
targetPort: 8080
protocol: TCP
storage:
site:
enabled: true
storageClassName: default
size: 3Gi
accessModes:
- ReadWriteOnce
config:
# -- Please have a look here: https://github.com/dani-garcia/vaultwarden/blob/main/.env.template
env:
main:
enabled: false
sensitive: false
remove: []
data: {}
secrets:
enabled: false
sensitive: true
remove: []
data: {}