feat: migrate bookstack helm chart to k8s-at-home

This commit is contained in:
auricom
2021-04-22 23:53:19 +02:00
parent 9bb737bade
commit 8b3896fb69
6 changed files with 47 additions and 19 deletions

View File

@@ -10,10 +10,10 @@ spec:
spec:
# renovate: registryUrl=https://nicholaswilde.github.io/helm-charts/
chart: bookstack
version: 0.1.16
version: 1.0.0
sourceRef:
kind: HelmRepository
name: nicholaswilde-charts
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
@@ -21,10 +21,20 @@ spec:
repository: ghcr.io/linuxserver/bookstack
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "version-v21.04"
tag: "version-v21.04.2"
mariadb:
enabled: true
auth:
database: bookstack
username: bookstack
password: ${SECRET_BOOKSTACK_DB_PASSWORD}
primary:
persistence:
enabled: true
existingClaim: bookstack-db
env:
APP_URL: https://bookstack.${SECRET_CLUSTER_DOMAIN}/
DB_HOST: mariadb-kube.data.svc.cluster.local.
DB_HOST: bookstack-mariadb
DB_DATABASE: bookstack
DB_USERNAME: bookstack
DB_PASSWORD: ${SECRET_BOOKSTACK_DB_PASSWORD}
@@ -38,7 +48,6 @@ spec:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/whitelist-source-range: 0.0.0.0/0
hosts:
- host: bookstack.${SECRET_CLUSTER_DOMAIN}
paths:
@@ -51,4 +60,4 @@ spec:
config:
enabled: true
mountPath: /config
existingClaim: bookstack-config
existingClaim: bookstack-config

View File

@@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- volume.yaml
- volumes.yaml

View File

@@ -12,4 +12,4 @@ spec:
storageClassName: rook-ceph-block
resources:
requests:
storage: 1Gi
storage: 5Gi

View File

@@ -0,0 +1,30 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: bookstack-config
namespace: data
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: bookstack-db
namespace: data
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 5Gi