[zh-cn] Resync some MySQL example YAMLs

This commit is contained in:
Qiming Teng
2022-06-25 11:28:00 +08:00
parent a9b7331f57
commit 1c461b64d5
3 changed files with 11 additions and 8 deletions
@@ -1,10 +1,11 @@
# Headless service for stable DNS entries of StatefulSet members.
# 为 StatefulSet 成员提供稳定的 DNS 表项的无头服务(Headless Service
apiVersion: v1
kind: Service
metadata:
name: mysql
labels:
app: mysql
app.kubernetes.io/name: mysql
spec:
ports:
- name: mysql
@@ -13,14 +14,16 @@ spec:
selector:
app: mysql
---
# Client service for connecting to any MySQL instance for reads.
# For writes, you must instead connect to the primary: mysql-0.mysql.
# 用于连接到任一 MySQL 实例执行读操作的客户端服务
# 对于写操作,你必须连接到主服务器:mysql-0.mysql
apiVersion: v1
kind: Service
metadata:
name: mysql-read
labels:
app: mysql
app.kubernetes.io/name: mysql
readonly: "true"
spec:
ports:
- name: mysql