mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
chart 0.1.2
This commit is contained in:
parent
4070b099cf
commit
780c382f70
6 changed files with 91 additions and 7 deletions
|
@ -15,7 +15,7 @@ type: application
|
|||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
version: 0.1.2
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# calckey
|
||||
|
||||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: rc](https://img.shields.io/badge/AppVersion-rc-informational?style=flat-square)
|
||||
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: rc](https://img.shields.io/badge/AppVersion-rc-informational?style=flat-square)
|
||||
|
||||
A fun, new, open way to experience social media https://calckey.org
|
||||
|
||||
|
@ -22,8 +22,14 @@ A fun, new, open way to experience social media https://calckey.org
|
|||
| autoscaling.minReplicas | int | `1` | |
|
||||
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
|
||||
| calckey.allowedPrivateNetworks | list | `[]` | If you want to allow calckey to connect to private ips, enter the cidrs here. |
|
||||
| calckey.deepl.authKey | string | `""` | |
|
||||
| calckey.deepl.isPro | bool | `false` | |
|
||||
| calckey.deepl.managed | bool | `false` | |
|
||||
| calckey.domain | string | `"calckey.local"` | |
|
||||
| calckey.isManagedHosting | bool | `true` | |
|
||||
| calckey.libreTranslate.apiKey | string | `""` | |
|
||||
| calckey.libreTranslate.apiUrl | string | `""` | |
|
||||
| calckey.libreTranslate.managed | bool | `false` | |
|
||||
| calckey.objectStorage.access_key | string | `""` | |
|
||||
| calckey.objectStorage.access_secret | string | `""` | |
|
||||
| calckey.objectStorage.baseUrl | string | `""` | |
|
||||
|
@ -44,7 +50,7 @@ A fun, new, open way to experience social media https://calckey.org
|
|||
| calckey.smtp.port | int | `587` | |
|
||||
| calckey.smtp.server | string | `"smtp.mailgun.org"` | |
|
||||
| calckey.smtp.useImplicitSslTls | bool | `false` | |
|
||||
| elasticsearch | object | `{"auth":null,"enabled":false,"hostname":"","port":9200,"ssl":false}` | https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters |
|
||||
| elasticsearch | object | `{"auth":{},"enabled":false,"hostname":"","port":9200,"ssl":false}` | https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters |
|
||||
| fullnameOverride | string | `""` | |
|
||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||
| image.repository | string | `"docker.io/thatonecalculator/calckey"` | |
|
||||
|
|
|
@ -282,10 +282,15 @@ allowedPrivateNetworks:
|
|||
#maxUserSignups: 100
|
||||
isManagedHosting: {{ .Values.calckey.isManagedHosting }}
|
||||
deepl:
|
||||
managed: false
|
||||
# authKey: ''
|
||||
# isPro: false
|
||||
#
|
||||
managed: {{ .Values.calckey.deepl.managed }}
|
||||
authKey: {{ .Values.calckey.deepl.authKey | quote}}
|
||||
isPro: {{ .Values.calckey.deepl.isPro }}
|
||||
|
||||
libreTranslate:
|
||||
managed: {{ .Values.calckey.libreTranslate.managed }}
|
||||
apiUrl: {{ .Values.calckey.libreTranslate.apiUrl | quote }}
|
||||
apiKey: {{ .Values.calckey.libreTranslate.apiKey | quote }}
|
||||
|
||||
email:
|
||||
managed: {{ .Values.calckey.smtp.managed }}
|
||||
address: {{ .Values.calckey.smtp.from_address | quote }}
|
||||
|
|
|
@ -38,6 +38,10 @@ spec:
|
|||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command:
|
||||
- pnpm
|
||||
- run
|
||||
- start
|
||||
env:
|
||||
- name: "NODE_ENV"
|
||||
value: "production"
|
||||
|
|
59
chart/templates/job-db-migrate.yaml
Normal file
59
chart/templates/job-db-migrate.yaml
Normal file
|
@ -0,0 +1,59 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ include "calckey.fullname" . }}-db-migrate
|
||||
labels:
|
||||
{{- include "calckey.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": post-install,pre-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
"helm.sh/hook-weight": "-2"
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
name: {{ include "calckey.fullname" . }}-db-migrate
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "calckey.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
volumes:
|
||||
- name: config-volume
|
||||
secret:
|
||||
secretName: {{ template "calckey.fullname" . }}-config
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command:
|
||||
- pnpm
|
||||
- run
|
||||
- migrate
|
||||
env:
|
||||
- name: "NODE_ENV"
|
||||
value: "production"
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /calckey/.config
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
|
@ -14,6 +14,16 @@ calckey:
|
|||
isManagedHosting: true
|
||||
domain: calckey.local
|
||||
|
||||
deepl:
|
||||
managed: false
|
||||
authKey: ""
|
||||
isPro: false
|
||||
|
||||
libreTranslate:
|
||||
managed: false
|
||||
apiUrl: ""
|
||||
apiKey: ""
|
||||
|
||||
smtp:
|
||||
managed: true
|
||||
from_address: notifications@example.com
|
||||
|
|
Loading…
Reference in a new issue