Move to Tasks: Replicated Stateful. (#3639)

* Move to Tasks: Replicated Stateful.

* Fix toc entry.
This commit is contained in:
Steve Perry
2017-05-04 13:31:11 -07:00
committed by GitHub
parent 712c374379
commit 204aad82b1
6 changed files with 7 additions and 4 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