postgresql

云原生postgresql约 120 字小于 1 分钟

部署

github/bitnamiopen in new window

拉取 charts

helm pull  oci://registry-1.docker.io/bitnamicharts/postgresql --version 12.5.2

解压

tar -zxvf postgresql-12.5.2.tgz

配置

更多配置参考 charts内的 values 或官方文档说明

cat <<EOF > pgsql-values.yaml
global:
  imageRegistry: ""
  postgresql:
    auth:
      postgresPassword: "Password@0101"
      username: "gitlab"
      password: "Password@0101"
      database: "gitlab"
primary:
  persistence:
    accessModes:
      - ReadWriteOnce
    size: 8Gi
  readReplicas:
    resources:
      limits: {}
      requests:
        memory: 256Mi
        cpu: 250m
readReplicas:
  name: read
  replicaCount: 1
  persistence:
    enabled: true
    accessModes:
      - ReadWriteOnce
    size: 8Gi
  readReplicas:
    resources:
      limits: {}
      requests:
        memory: 256Mi
        cpu: 250m

安装

helm upgrade --install pgsql . -f pgsql-values.yaml -n middleware --create-namespace