New chart version
This commit is contained in:
8
defaults.yaml
Normal file
8
defaults.yaml
Normal 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
|
||||
@ -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
|
||||
@ -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 }}
|
||||
@ -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 }}
|
||||
37
values.yaml
37
values.yaml
@ -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
|
||||
Reference in New Issue
Block a user