helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/postgresql
Nếu trong k8s có node ssd và bạn cần nodeSelector hay tolerations để chọn đúng node thì sử dụng value sau:
global:
postgresql:
postgresqlDatabase: ""
postgresqlUsername: ""
existingSecret: ""
postgresqlPassword: "nim696969"
servicePort: ""
replicationPassword: "nim696969"
primary:
tolerations:
- key: "node"
operator: "Equal"
value: "storage-ssd"
effect: "NoSchedule"
nodeSelector:
node: "storage-ssd"
readReplicas:
tolerations:
- key: "node"
operator: "Equal"
value: "storage-ssd"
effect: "NoSchedule"
nodeSelector:
node: "storage-ssd"
Với cấu hình trên thì user/pass sẽ là postgres/nim123
Links thảm khảo value
https://artifacthub.io/packages/helm/bitnami/postgresql