From 204aad82b134f026f8ef78bf67cded2f08b3cd0b Mon Sep 17 00:00:00 2001 From: Steve Perry Date: Thu, 4 May 2017 13:31:11 -0700 Subject: [PATCH] Move to Tasks: Replicated Stateful. (#3639) * Move to Tasks: Replicated Stateful. * Fix toc entry. --- _data/tasks.yml | 1 + _data/tutorials.yml | 1 - .../run-application}/mysql-configmap.yaml | 0 .../run-application}/mysql-services.yaml | 0 .../run-application}/mysql-statefulset.yaml | 0 .../run-replicated-stateful-application.md | 9 ++++++--- 6 files changed, 7 insertions(+), 4 deletions(-) rename docs/{tutorials/stateful-application => tasks/run-application}/mysql-configmap.yaml (100%) rename docs/{tutorials/stateful-application => tasks/run-application}/mysql-services.yaml (100%) rename docs/{tutorials/stateful-application => tasks/run-application}/mysql-statefulset.yaml (100%) rename docs/{tutorials/stateful-application => tasks/run-application}/run-replicated-stateful-application.md (97%) diff --git a/_data/tasks.yml b/_data/tasks.yml index ed1da88cb7..3fe44a7466 100644 --- a/_data/tasks.yml +++ b/_data/tasks.yml @@ -47,6 +47,7 @@ toc: section: - docs/tasks/run-application/run-stateless-application-deployment.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/horizontal-pod-autoscale.md - docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md diff --git a/_data/tutorials.yml b/_data/tutorials.yml index f7f1233cc5..20618c3a07 100644 --- a/_data/tutorials.yml +++ b/_data/tutorials.yml @@ -45,7 +45,6 @@ toc: - title: Stateful Applications section: - docs/tutorials/stateful-application/basic-stateful-set.md - - docs/tutorials/stateful-application/run-replicated-stateful-application.md - docs/tutorials/stateful-application/zookeeper.md - title: Connecting Applications section: diff --git a/docs/tutorials/stateful-application/mysql-configmap.yaml b/docs/tasks/run-application/mysql-configmap.yaml similarity index 100% rename from docs/tutorials/stateful-application/mysql-configmap.yaml rename to docs/tasks/run-application/mysql-configmap.yaml diff --git a/docs/tutorials/stateful-application/mysql-services.yaml b/docs/tasks/run-application/mysql-services.yaml similarity index 100% rename from docs/tutorials/stateful-application/mysql-services.yaml rename to docs/tasks/run-application/mysql-services.yaml diff --git a/docs/tutorials/stateful-application/mysql-statefulset.yaml b/docs/tasks/run-application/mysql-statefulset.yaml similarity index 100% rename from docs/tutorials/stateful-application/mysql-statefulset.yaml rename to docs/tasks/run-application/mysql-statefulset.yaml diff --git a/docs/tutorials/stateful-application/run-replicated-stateful-application.md b/docs/tasks/run-application/run-replicated-stateful-application.md similarity index 97% rename from docs/tutorials/stateful-application/run-replicated-stateful-application.md rename to docs/tasks/run-application/run-replicated-stateful-application.md index b287e7b035..52dd67d3e9 100644 --- a/docs/tutorials/stateful-application/run-replicated-stateful-application.md +++ b/docs/tasks/run-application/run-replicated-stateful-application.md @@ -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: