feat(wikijs): scaffold app with ceph-rbd persistence
- Fix helmrelease sourceRef name (requarks -> wikijs) - Add kustomization.yaml with configMapGenerator for values - Populate values.yaml: traefik ingress, ClusterIP service, PostgreSQL on ceph-rbd - Register wikijs in apps/kustomization.yaml
This commit is contained in:
parent
99fd0894f3
commit
4389fc4a38
|
|
@ -7,4 +7,5 @@ resources:
|
|||
- forgejo
|
||||
- monitoring
|
||||
- homepage
|
||||
- kimai
|
||||
- kimai
|
||||
- wikijs
|
||||
20
apps/wikijs/helmrelease.yaml
Normal file
20
apps/wikijs/helmrelease.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
***REMOVED***
|
||||
name: wikijs
|
||||
namespace: wikijs
|
||||
spec:
|
||||
interval: 30m
|
||||
|
||||
chart:
|
||||
spec:
|
||||
chart: wikijs
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: wikijs
|
||||
namespace: flux-system
|
||||
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: wikijs-values
|
||||
valuesKey: values.yaml
|
||||
8
apps/wikijs/helmrepository.yaml
Normal file
8
apps/wikijs/helmrepository.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
***REMOVED***
|
||||
name: wikijs
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 12h
|
||||
url: https://robjuz.github.io/helm-charts/
|
||||
14
apps/wikijs/kustomization.yaml
Normal file
14
apps/wikijs/kustomization.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
resources:
|
||||
- namespace.yaml
|
||||
- helmrepository.yaml
|
||||
- helmrelease.yaml
|
||||
|
||||
namespace: wikijs
|
||||
|
||||
configMapGenerator:
|
||||
- name: wikijs-values
|
||||
files:
|
||||
- values.yaml
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
4
apps/wikijs/namespace.yaml
Normal file
4
apps/wikijs/namespace.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
***REMOVED***
|
||||
kind: Namespace
|
||||
***REMOVED***
|
||||
name: wikijs
|
||||
23
apps/wikijs/values.yaml
Normal file
23
apps/wikijs/values.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
ingress:
|
||||
enabled: true
|
||||
className: traefik
|
||||
hosts:
|
||||
- host: wiki.local
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
|
||||
postgresql:
|
||||
enabled: true
|
||||
auth:
|
||||
database: wikijs
|
||||
username: wikijs
|
||||
password: wikijs
|
||||
primary:
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 4Gi
|
||||
storageClass: ceph-rbd
|
||||
Loading…
Reference in a new issue