+Postgress
This commit is contained in:
parent
639278299b
commit
73c78ae875
1 changed files with 3 additions and 3 deletions
|
@ -33,11 +33,11 @@ InstallRegistry () {
|
||||||
}
|
}
|
||||||
InstallPGSQL () {
|
InstallPGSQL () {
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
helm install bitnami/postgresql \
|
helm install db bitnami/postgresql \
|
||||||
--set postgresql.password=K8Sdemo \
|
--set postgresql.password=K8Sdemo \
|
||||||
--set persistence.storageClass=hostpath \
|
--set persistence.storageClass=hostpath \
|
||||||
--set persistence.size=1Gi --name db
|
--set persistence.size=1Gi
|
||||||
# export POSTGRES_PASSWORD=$(kubectl get secret $(kubectl get svc|grep postgres|awk '{print $1}'|grep -v headless) -o jsonpath="{.data.postgresql-password}" | base64 --decode)
|
export POSTGRES_PASSWORD=$(kubectl get secret db-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)
|
||||||
}
|
}
|
||||||
InstallIngress () {
|
InstallIngress () {
|
||||||
# Allow scheduling on our master node
|
# Allow scheduling on our master node
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue