Consolidate YAML files [part-3] (#9237)

This PR consolidates YAML files used in `tasks/run-application`
subdirectory.
This commit is contained in:
Qiming
2018-07-03 02:15:20 +08:00
committed by k8s-ci-robot
parent 378e061cd3
commit a11e02d575
12 changed files with 20 additions and 18 deletions
@@ -0,0 +1,30 @@
# Headless service for stable DNS entries of StatefulSet members.
apiVersion: v1
kind: Service
metadata:
name: mysql
labels:
app: mysql
spec:
ports:
- name: mysql
port: 3306
clusterIP: None
selector:
app: mysql
---
# Client service for connecting to any MySQL instance for reads.
# For writes, you must instead connect to the master: mysql-0.mysql.
apiVersion: v1
kind: Service
metadata:
name: mysql-read
labels:
app: mysql
spec:
ports:
- name: mysql
port: 3306
selector:
app: mysql