mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
add pgadmin interface
This commit is contained in:
parent
b279955aff
commit
b7f939855d
@ -1,9 +1,9 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: pgadmin-config
|
name: pgadmin-config
|
||||||
labels:
|
labels:
|
||||||
app: pgadmin
|
app: pgadmin
|
||||||
data:
|
data:
|
||||||
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
||||||
PGADMIN_DEFAULT_PASSWORD: admin123
|
PGADMIN_DEFAULT_PASSWORD: admin123
|
||||||
|
@ -6,6 +6,7 @@ Deploy our test database
|
|||||||
```
|
```
|
||||||
kubectl create ns postgres
|
kubectl create ns postgres
|
||||||
kubectl -n postgres apply -f ./hashicorp/vault/example-apps/dynamic-postgresql/postgres.yaml
|
kubectl -n postgres apply -f ./hashicorp/vault/example-apps/dynamic-postgresql/postgres.yaml
|
||||||
|
kubectl -n postgres apply -f ./hashicorp/vault/example-apps/dynamic-postgresql/pgadmin.yaml
|
||||||
kubectl -n postgres get pods
|
kubectl -n postgres get pods
|
||||||
|
|
||||||
kubectl -n postgres exec -it <podname> bash
|
kubectl -n postgres exec -it <podname> bash
|
||||||
|
@ -100,8 +100,15 @@ Objective:
|
|||||||
|
|
||||||
[Try it](./example-apps/basic-secret/readme.md)
|
[Try it](./example-apps/basic-secret/readme.md)
|
||||||
|
|
||||||
|
### Dynamic Secrets: Postgres
|
||||||
|
|
||||||
|
Objective:
|
||||||
|
----------
|
||||||
|
* We have a Postgres Database
|
||||||
|
* Let's delegate Vault to manage life cycles of our database credentials
|
||||||
|
* Deploy an app, that automatically gets it's credentials from vault
|
||||||
|
|
||||||
|
[Try it](./example-apps/basic-secret/readme.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user