Add Pangolin configuration file
Pangolin requires a config.toml file to start. Added ConfigMap with basic configuration including URL, database path, and OIDC settings. Updated deployment to mount the config file. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
3d0d5f3f3a
commit
1c740828ed
2 changed files with 26 additions and 0 deletions
20
apps/pangolin/pangolin-config.yaml
Normal file
20
apps/pangolin/pangolin-config.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
# Pangolin ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: pangolin-config
|
||||||
|
namespace: pangolin
|
||||||
|
data:
|
||||||
|
config.toml: |
|
||||||
|
# Pangolin Configuration
|
||||||
|
url = "https://pangolin.basicstack.de"
|
||||||
|
|
||||||
|
[database]
|
||||||
|
path = "/data/pangolin.db"
|
||||||
|
|
||||||
|
[oidc]
|
||||||
|
enabled = true
|
||||||
|
issuer = "https://auth.basicstack.de"
|
||||||
|
callback_url = "https://pangolin.basicstack.de/auth/callback"
|
||||||
|
scopes = "openid profile email groups"
|
||||||
|
|
@ -72,6 +72,9 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pangolin-data
|
- name: pangolin-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
- name: config
|
||||||
|
mountPath: /app/config.toml
|
||||||
|
subPath: config.toml
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
|
|
@ -99,6 +102,9 @@ spec:
|
||||||
- name: pangolin-data
|
- name: pangolin-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: pangolin-data
|
claimName: pangolin-data
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: pangolin-config
|
||||||
---
|
---
|
||||||
# Pangolin Service
|
# Pangolin Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue