Added Template and nginx for Image-hosting

This commit is contained in:
maximilian.bartz 2025-04-30 11:37:24 +02:00
parent d2b911dd2d
commit 3f1180edae
10 changed files with 199 additions and 1 deletions

View file

@ -0,0 +1,35 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ${TENANT_NAMESPACE}-nginx
namespace: ${TENANT_NAMESPACE}
spec:
serviceAccountName: ${TECHNICAL_ACCOUNT}
interval: 5m
chart:
spec:
chart: nginx
version: 20.0.0
sourceRef:
kind: HelmRepository
name: bitnami
namespace: ${TENANT_NAMESPACE}
values:
service:
type: ClusterIP
ports:
http: 80
https: 443
ingress:
enabled: true
hostname: nginx.${TENANT_DOMAIN}.apps.ai-2.kvant.cloud
tls:
- hosts:
- nginx.${TENANT_DOMAIN}.apps.ai-2.kvant.cloud
extraVolumes:
- name: ${TENANT_NAMESPACE}-image-storage
persistentVolumeClaim:
claimName: ${TENANT_NAMESPACE}-image-storage
extraVolumeMounts:
- name: ${TENANT_NAMESPACE}-image-storage
mountPath: /usr/share/nginx/html