Move to Tasks: Replicated Stateful. (#3639)

* Move to Tasks: Replicated Stateful.

* Fix toc entry.
pull/3268/head
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

View File

@ -47,6 +47,7 @@ toc:
section: section:
- docs/tasks/run-application/run-stateless-application-deployment.md - docs/tasks/run-application/run-stateless-application-deployment.md
- docs/tasks/run-application/run-single-instance-stateful-application.md - docs/tasks/run-application/run-single-instance-stateful-application.md
- docs/tasks/run-application/run-replicated-stateful-application.md
- docs/tasks/run-application/rolling-update-replication-controller.md - docs/tasks/run-application/rolling-update-replication-controller.md
- docs/tasks/run-application/horizontal-pod-autoscale.md - docs/tasks/run-application/horizontal-pod-autoscale.md
- docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md - docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md

View File

@ -45,7 +45,6 @@ toc:
- title: Stateful Applications - title: Stateful Applications
section: section:
- docs/tutorials/stateful-application/basic-stateful-set.md - docs/tutorials/stateful-application/basic-stateful-set.md
- docs/tutorials/stateful-application/run-replicated-stateful-application.md
- docs/tutorials/stateful-application/zookeeper.md - docs/tutorials/stateful-application/zookeeper.md
- title: Connecting Applications - title: Connecting Applications
section: section:

View File

@ -8,6 +8,9 @@ assignees:
- kow3ns - kow3ns
- smarterclayton - smarterclayton
title: Running a Replicated Stateful Application 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 %} {% 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 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 This ConfigMap provides `my.cnf` overrides that let you independently control
configuration on the MySQL master and slaves. 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 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 The Headless Service provides a home for the DNS entries that the StatefulSet
controller creates for each Pod that's part of the set. 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 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: You can watch the startup progress by running: