Skip to main content

postgresql


설치

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update bitnami \
&& helm search repo bitnami/postgresql -l | head -n 10
helm show values bitnami/postgresql \
--version 12.1.7 \
> postgresql-values.yaml
auth:
postgresPassword: ""

architecture: standalone

primary:
labels: {}

resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 250m
memory: 256Mi

persistence:
storageClass: ""
size: 10Gi
labels: {}
helm template postgresql bitnami/postgresql \
--version 12.1.7 \
-n storage \
-f postgresql-values.yaml \
> postgresql.yaml
helm upgrade postgresql bitnami/postgresql \
--install \
--version 12.1.7 \
-n storage \
--history-max 3 \
-f postgresql-values.yaml

Test

kubectl run tmp-psql --rm -it --image postgres -- psql -h postgresql.storage -U postgres -W