k8s/manifests/01-namespaces/pg.yaml
Simple_Not 9f3a24fe1b
All checks were successful
continuous-integration/drone/push Build is passing
add pg
2023-12-14 19:46:11 +10:00

31 lines
583 B
YAML

---
apiVersion: v1
kind: Namespace
metadata:
labels:
name: pg
name: pg
---
#### https://blog.devgenius.io/how-to-deploy-postgresql-db-server-and-pgadmin-in-kubernetes-a-how-to-guide-57952b4e29a8
# echo -n '<secret>' | base64
apiVersion: v1
kind: Secret
metadata:
name: postgres-secret
labels:
app: postgres
namespace: pg
type: Opaque
data:
postgres-root-username: YWRtaW4=
postgres-root-password: YWRtaW5p
---
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-configmap
labels:
app: postgres
namespace: pg
data:
postgres-dbname: mainbase