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
|
- name: DB_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "solidtime.fullname" . }}-secret
|
name: {{ .Values.secret.existingSecret | default (printf "%s-secret" (include "solidtime.fullname" .)) }}
|
||||||
key: DB_PASSWORD
|
key: DB_PASSWORD
|
||||||
- name: APP_KEY
|
- name: APP_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "solidtime.fullname" . }}-secret
|
name: {{ .Values.secret.existingSecret | default (printf "%s-secret" (include "solidtime.fullname" .)) }}
|
||||||
key: APP_KEY
|
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
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "solidtime.fullname" . }}-secret
|
name: {{ include "solidtime.fullname" . }}-secret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
APP_KEY: {{ .Values.appKey | quote }}
|
APP_KEY: {{ .Values.secret.appKey | quote }}
|
||||||
DB_PASSWORD: {{ .Values.postgresql.auth.password | 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:
|
image:
|
||||||
repository: solidtime/solidtime
|
repository: solidtime/solidtime
|
||||||
pullPolicy: IfNotPresent
|
tag: latest
|
||||||
tag: "latest" # Pin this to a specific version in production!
|
service:
|
||||||
|
type: ClusterIP
|
||||||
# Generates the Laravel App Key. Change this!
|
secret:
|
||||||
# Run `php artisan key:generate --show` locally to get one.
|
existingSecret: "" # Left empty by default
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user