feat(deploy): 首次提交
这个提交包含在:
@@ -0,0 +1,37 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: postgresql-ha
|
||||
namespace: infra-data
|
||||
spec:
|
||||
chart: oci://registry-1.docker.io/bitnamicharts/postgresql-ha
|
||||
targetNamespace: infra-data
|
||||
valuesContent: |-
|
||||
tolerations:
|
||||
- key: "node-role.kubernetes.io/master"
|
||||
operator: "Exists"
|
||||
effect: "NoSchedule"
|
||||
global:
|
||||
postgresql:
|
||||
username: rohow
|
||||
password: L#GRtTR2QuL@20pm6+c~
|
||||
postgresql:
|
||||
image:
|
||||
debug: true
|
||||
postgresPassword: L#GRtTR2QuL@20pm6+c~
|
||||
nodeAffinityPreset:
|
||||
type: "hard"
|
||||
key: "topology.kubernetes.io/region"
|
||||
values:
|
||||
- "cn-sh"
|
||||
pgpool:
|
||||
image:
|
||||
debug: true
|
||||
nodeAffinityPreset:
|
||||
type: "hard"
|
||||
key: "topology.kubernetes.io/region"
|
||||
values:
|
||||
- "cn-sh"
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: postgresql-ha
|
||||
namespace: infra-data
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/instance: postgresql-ha
|
||||
app.kubernetes.io/name: postgresql-ha
|
||||
app.kubernetes.io/component: pgpool
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 65432
|
||||
targetPort: 5432
|
||||
type: LoadBalancer
|
||||
在新议题中引用
屏蔽一个用户