mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-09 05:15:58 +10:00
Update Kubernetes manifest with db setting
This commit is contained in:
@@ -48,7 +48,7 @@ func main() {
|
||||
dbConfig := config.Config{
|
||||
Host: getEnvWithDefault("DB_HOST", "home.toozhao.com"),
|
||||
Port: getEnvWithDefault("DB_PORT", "0000"),
|
||||
DBName: getEnvWithDefault("DB_NAME", "badges"),
|
||||
DBName: getEnvWithDefault("DB_NAME", "badges_dev"),
|
||||
Username: getEnvWithDefault("DB_USERNAME", "someuser"),
|
||||
Password: getEnvWithDefault("DB_PASSWORD", "hahah"),
|
||||
}
|
||||
|
||||
@@ -19,6 +19,15 @@ spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: DB_NAME
|
||||
value: badges
|
||||
- name: DB_USERNAME
|
||||
value: postgres
|
||||
- name: DB_PASSWORD
|
||||
valueFrom: {secretKeyRef: {name: database-credentials, key: password}}
|
||||
- name: PORT
|
||||
value: "32222"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: badger-port
|
||||
|
||||
Reference in New Issue
Block a user