Move to Tasks: Replicated Stateful. (#3639)
* Move to Tasks: Replicated Stateful. * Fix toc entry.
This commit is contained in:
+6
-3
@@ -8,6 +8,9 @@ assignees:
|
||||
- kow3ns
|
||||
- smarterclayton
|
||||
title: Running a Replicated Stateful Application
|
||||
redirect_from:
|
||||
- "/docs/tutorials/stateful-application/run-replicated-stateful-application/"
|
||||
- "/docs/tutorials/stateful-application/run-replicated-stateful-application.html"
|
||||
---
|
||||
|
||||
{% capture overview %}
|
||||
@@ -62,7 +65,7 @@ Create the ConfigMap from the following YAML configuration file:
|
||||
kubectl create -f http://k8s.io/docs/tutorials/stateful-application/mysql-configmap.yaml
|
||||
```
|
||||
|
||||
{% include code.html language="yaml" file="mysql-configmap.yaml" ghlink="/docs/tutorials/stateful-application/mysql-configmap.yaml" %}
|
||||
{% include code.html language="yaml" file="mysql-configmap.yaml" ghlink="/docs/tutorials/run-application/mysql-configmap.yaml" %}
|
||||
|
||||
This ConfigMap provides `my.cnf` overrides that let you independently control
|
||||
configuration on the MySQL master and slaves.
|
||||
@@ -82,7 +85,7 @@ Create the Services from the following YAML configuration file:
|
||||
kubectl create -f http://k8s.io/docs/tutorials/stateful-application/mysql-services.yaml
|
||||
```
|
||||
|
||||
{% include code.html language="yaml" file="mysql-services.yaml" ghlink="/docs/tutorials/stateful-application/mysql-services.yaml" %}
|
||||
{% include code.html language="yaml" file="mysql-services.yaml" ghlink="/docs/tutorials/run-application/mysql-services.yaml" %}
|
||||
|
||||
The Headless Service provides a home for the DNS entries that the StatefulSet
|
||||
controller creates for each Pod that's part of the set.
|
||||
@@ -108,7 +111,7 @@ Finally, create the StatefulSet from the following YAML configuration file:
|
||||
kubectl create -f http://k8s.io/docs/tutorials/stateful-application/mysql-statefulset.yaml
|
||||
```
|
||||
|
||||
{% include code.html language="yaml" file="mysql-statefulset.yaml" ghlink="/docs/tutorials/stateful-application/mysql-statefulset.yaml" %}
|
||||
{% include code.html language="yaml" file="mysql-statefulset.yaml" ghlink="/docs/tutorials/run-application/mysql-statefulset.yaml" %}
|
||||
|
||||
You can watch the startup progress by running:
|
||||
|
||||
Reference in New Issue
Block a user