mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-04-05 01:33:46 +00:00
[OPB-xxx] adding configuration and changing structure for k8s deployment
This commit is contained in:
13
deployment/helm/oneplus-bot/templates/db-credentials.yaml
Normal file
13
deployment/helm/oneplus-bot/templates/db-credentials.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: db-credentials
|
||||
annotations:
|
||||
"helm.sh/hook": pre-upgrade,pre-install
|
||||
"helm.sh/hook-weight": "-6"
|
||||
data:
|
||||
dbPassword: {{ $.Values.dbCredentials.password | b64enc }} # b64enc is needed, because a stringData secret field cannot hold numeric values
|
||||
dbUser: {{ $.Values.dbCredentials.userName | b64enc }}
|
||||
dbHost: {{ $.Values.dbCredentials.host | b64enc }}
|
||||
dbPort: {{ $.Values.dbCredentials.port | b64enc }}
|
||||
dbName: {{ $.Values.dbCredentials.name | b64enc }}
|
||||
Reference in New Issue
Block a user