Files
dsh_shenxian/poc/04-cnpg-pgbench/cluster.yaml
T

18 lines
492 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# §4.5:CloudNativePG 3 实例,Longhorn RWO(每实例独立卷,复制由 PG 自身做)。
# imageName 走 operator 默认镜像;若你的 operator 未设默认,取消注释并指定版本。
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: dsh-pg-poc
namespace: dsh-poc
spec:
instances: 3
# imageName: ghcr.io/cloudnative-pg/postgresql:16.2
storage:
size: 1Gi
storageClass: longhorn
bootstrap:
initdb:
database: dsh
owner: dsh