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:

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

View File

@@ -19,7 +19,6 @@ resources:
- kasten-charts.yaml
- kubernetes-dashboard-charts.yaml
- kubernetes-sigs-descheduler-charts.yaml
- nicholaswilde.yaml
- node-feature-discovery.yaml
- prometheus-community-charts.yaml
- rook-ceph-charts.yaml

View File

@@ -1,10 +0,0 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: nicholaswilde-charts
namespace: flux-system
spec:
interval: 10m
url: https://nicholaswilde.github.io/helm-charts
timeout: 3m