Skip to content

Commit aa82c60

Browse files
add bookstack
1 parent ab00540 commit aa82c60

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
apiVersion: "external-secrets.io/v1beta1"
3+
kind: "ExternalSecret"
4+
metadata:
5+
name: "bookstack"
6+
spec:
7+
refreshInterval: "1h"
8+
secretStoreRef:
9+
name: "vault"
10+
kind: "ClusterSecretStore"
11+
target:
12+
name: "bookstack"
13+
creationPolicy: "Owner"
14+
data:
15+
- secretKey: "APP_KEY"
16+
remoteRef:
17+
key: "secret/soeren.cloud/env/prod/bookstack"
18+
property: "APP_KEY"
19+
- secretKey: "DB_PASSWORD"
20+
remoteRef:
21+
key: "secret/soeren.cloud/env/prod/bookstack"
22+
property: "DB_PASSWORD"
23+
- secretKey: "DB_USERNAME"
24+
remoteRef:
25+
key: "secret/soeren.cloud/env/prod/bookstack"
26+
property: "DB_USERNAME"
27+
- secretKey: "OIDC_CLIENT_ID"
28+
remoteRef:
29+
key: "secret/soeren.cloud/env/prod/bookstack"
30+
property: "OIDC_CLIENT_ID"
31+
- secretKey: "OIDC_CLIENT_SECRET"
32+
remoteRef:
33+
key: "secret/soeren.cloud/env/prod/bookstack"
34+
property: "OIDC_CLIENT_SECRET"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
namespace: bookstack
5+
resources:
6+
- ../../../apps/bookstack
7+
- namespace.yaml
8+
- external-secret-bookstack.yaml
9+
components:
10+
- ../../../apps/bookstack/components/istio
11+
- ../../../apps/bookstack/components/oidc
12+
patches:
13+
- target:
14+
kind: VirtualService
15+
name: bookstack
16+
patch: |
17+
- op: replace
18+
path: /spec/hosts
19+
value:
20+
- bookstack.svc.ez.soeren.cloud
21+
configMapGenerator:
22+
- name: bookstack-config
23+
behavior: merge
24+
literals:
25+
- APP_URL=https://bookstack.svc.ez.soeren.cloud
26+
- DB_HOST=dbs.ez.soeren.cloud:3306
27+
- OIDC_ISSUER=https://keycloak.svc.ez.soeren.cloud/realms/myrealm
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
kind: Namespace
3+
apiVersion: v1
4+
metadata:
5+
name: bookstack
6+
labels:
7+
name: bookstack

0 commit comments

Comments
 (0)