19 lines
689 B
YAML
19 lines
689 B
YAML
# thai-tuopu-2000-4 客户特例:把 agent-thai-tuopu-2000-4 的 postgres 以 LoadBalancer 暴露到宿主机所有网卡(各网段 IP:5432 直连)。
|
|
# 不改 hub chart,不动 chart 渲染出的 agent-thai-tuopu-2000-4-postgres-service;由 applications/thai-tuopu-2000-4/agent-postgres-lb.yaml 接管。
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: agent-thai-tuopu-2000-4-postgres-lb
|
|
labels:
|
|
app.kubernetes.io/name: mixingx
|
|
app.kubernetes.io/component: agent-thai-tuopu-2000-4-postgres
|
|
spec:
|
|
type: LoadBalancer
|
|
selector:
|
|
app.kubernetes.io/component: agent-thai-tuopu-2000-4-postgres
|
|
ports:
|
|
- name: tcp
|
|
port: 5432
|
|
targetPort: tcp
|
|
protocol: TCP
|