New chart version

This commit is contained in:
olof.pettersson
2025-12-11 15:53:46 +01:00
parent a8ac81b848
commit 2718666042
5 changed files with 62 additions and 35 deletions

8
defaults.yaml Normal file
View File

@ -0,0 +1,8 @@
# defaults.yaml (inside the chart)
image:
repository: solidtime/solidtime
tag: latest
service:
type: ClusterIP
secret:
existingSecret: "" # Left empty by default

View File

@ -24,10 +24,10 @@ spec:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "solidtime.fullname" . }}-secret
name: {{ .Values.secret.existingSecret | default (printf "%s-secret" (include "solidtime.fullname" .)) }}
key: DB_PASSWORD
- name: APP_KEY
valueFrom:
secretKeyRef:
name: {{ include "solidtime.fullname" . }}-secret
name: {{ .Values.secret.existingSecret | default (printf "%s-secret" (include "solidtime.fullname" .)) }}
key: APP_KEY

View File

@ -0,0 +1,42 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "solidtime.fullname" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "solidtime.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ $fullName }}
port:
number: {{ .port | default $.Values.service.port }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -1,8 +1,10 @@
{{- if not .Values.secret.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "solidtime.fullname" . }}-secret
type: Opaque
stringData:
APP_KEY: {{ .Values.appKey | quote }}
DB_PASSWORD: {{ .Values.postgresql.auth.password | quote }}
APP_KEY: {{ .Values.secret.appKey | quote }}
DB_PASSWORD: {{ .Values.secret.dbPassword | quote }}
{{- end }}

View File

@ -1,33 +1,8 @@
domain: "time.northernlighthouseinteractive.com"
# defaults.yaml (inside the chart)
image:
repository: solidtime/solidtime
pullPolicy: IfNotPresent
tag: "latest" # Pin this to a specific version in production!
# Generates the Laravel App Key. Change this!
# Run `php artisan key:generate --show` locally to get one.
appKey: "base64:YOUR_GENERATED_KEY_HERE"
ingress:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
- host: time.northernlighthouseinteractive.com
paths:
- path: /
pathType: Prefix
# Database Dependency Configuration
postgresql:
enabled: true
auth:
username: solidtime
password: securepassword
database: solidtime
primary:
persistence:
enabled: true
size: 10Gi
tag: latest
service:
type: ClusterIP
secret:
existingSecret: "" # Left empty by default