Configure kimai and some more

This commit is contained in:
xeruf 2022-07-20 09:23:08 +01:00
parent 88f5947067
commit 9f8abda452
9 changed files with 49 additions and 6 deletions

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- vikunja-oauth-client.yaml
- vikunja-release.yaml
- vikunja-values-configmap.yaml
- vikunja-postgres-pvc.yaml

View File

@ -9,10 +9,10 @@ data:
values.yaml: |
additionalContainers:
api:
image: vikunja/api:0.18.1
image: vikunja/api:unstable
imagePullPolicy: Always
frontend:
image: vikunja/frontend:0.18.2
image: vikunja/frontend:unstable
imagePullPolicy: Always
vikunja:
config: |-

View File

@ -13,7 +13,7 @@ data:
certManager: true
suitecrmUsername: "admin"
suitecrmEmail: "${admin_email}"
suitecrmPassword: "${suitecrm_password}"
suitecrmPassword: "${password}"
mariadb:
auth:
password: "${mariadb_password}"

View File

@ -7,13 +7,23 @@ data:
values.yaml: |
# https://github.com/robjuz/helm-charts/tree/master/charts/kimai2#parameters
image:
# Maybe apache-latest?
tag: apache-1.20.4-prod
tag: apache-1.21.0-prod
kimaiAppSecret: "${secret}"
kimaiAdminEmail: "${admin_email}"
kimaiAdminPassword: "${password}"
kimaiMailerUrl: "smtp://${outgoing_mail_smtp_user}:${outgoing_mail_smtp_password}@${outgoing_mail_smtp_host}?encryption=tls&auth_mode=plain"
kimaiMailerFrom: "${outgoing_mail_from_address}"
ingress:
enabled: true
certManager: true
tls: true
hostname: "time.${domain}"
persistence:
existingClaim: kimai-data
mariadb:
auth:
password: "${mariadb_password}"
rootPassword: "${mariadb_root_password}"
# - name: Stackspin
# key: "${client_id}"
# secret: "${client_secret}"

View File

@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- kimai-release.yaml
- pvc.yaml
- kimai-values-configmap.yaml

15
basic/apps/time/pvc.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: kimai-data
namespace: stackspout
labels:
stackspin.net/backupSet: "kimai"
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 2Gi
storageClassName: local-path

View File

@ -19,3 +19,4 @@ python $(dirname "$0")/../generate_secrets.py vikunja
python $(dirname "$0")/../generate_secrets.py vikunja-test
python $(dirname "$0")/../generate_secrets.py gitea
python $(dirname "$0")/../generate_secrets.py suitecrm
python $(dirname "$0")/../generate_secrets.py kimai

View File

@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: stackspin-suitecrm-variables
data:
password: "{{ 32 | generate_password | b64encode }}"
secret: "{{ 32 | generate_password | b64encode }}"
mariadb_password: "{{ 32 | generate_password | b64encode }}"
mariadb_root_password: "{{ 32 | generate_password | b64encode }}"

View File

@ -3,6 +3,6 @@ kind: Secret
metadata:
name: stackspin-suitecrm-variables
data:
suitecrm_password: "{{ 32 | generate_password | b64encode }}"
password: "{{ 32 | generate_password | b64encode }}"
mariadb_password: "{{ 32 | generate_password | b64encode }}"
mariadb_root_password: "{{ 32 | generate_password | b64encode }}"