From c20e8984911fc5ea58e5bc56fbafbcb4afbdcb94 Mon Sep 17 00:00:00 2001 From: Anthony Yeh Date: Fri, 2 Dec 2016 12:52:16 -0800 Subject: [PATCH] Replicated stateful application doesn't need its own directory. --- _data/tutorials.yml | 2 +- docs/tutorials/index.md | 2 +- .../Dockerfile | 0 .../mysql-configmap.yaml | 0 .../mysql-services.yaml | 0 .../mysql-statefulset.yaml | 0 .../run-replicated-stateful-application.md | 6 +++--- test/examples_test.go | 2 +- 8 files changed, 6 insertions(+), 6 deletions(-) rename docs/tutorials/{replicated-stateful-application => stateful-application}/Dockerfile (100%) rename docs/tutorials/{replicated-stateful-application => stateful-application}/mysql-configmap.yaml (100%) rename docs/tutorials/{replicated-stateful-application => stateful-application}/mysql-services.yaml (100%) rename docs/tutorials/{replicated-stateful-application => stateful-application}/mysql-statefulset.yaml (100%) rename docs/tutorials/{replicated-stateful-application => stateful-application}/run-replicated-stateful-application.md (98%) diff --git a/_data/tutorials.yml b/_data/tutorials.yml index 5b8bae44cb..1af2276a11 100644 --- a/_data/tutorials.yml +++ b/_data/tutorials.yml @@ -56,4 +56,4 @@ toc: - title: Running a Single-Instance Stateful Application path: /docs/tutorials/stateful-application/run-stateful-application/ - title: Running a Replicated Stateful Application - path: /docs/tutorials/replicated-stateful-application/run-replicated-stateful-application/ + path: /docs/tutorials/stateful-application/run-replicated-stateful-application/ diff --git a/docs/tutorials/index.md b/docs/tutorials/index.md index 7372122896..bcec6590cf 100644 --- a/docs/tutorials/index.md +++ b/docs/tutorials/index.md @@ -21,7 +21,7 @@ each of which has a sequence of steps. #### Stateful Applications * [Running a Single-Instance Stateful Application](/docs/tutorials/stateful-application/run-stateful-application/) -* [Running a Replicated Stateful Application](/docs/tutorials/replicated-stateful-application/run-replicated-stateful-application/) +* [Running a Replicated Stateful Application](/docs/tutorials/stateful-application/run-replicated-stateful-application/) ### What's next diff --git a/docs/tutorials/replicated-stateful-application/Dockerfile b/docs/tutorials/stateful-application/Dockerfile similarity index 100% rename from docs/tutorials/replicated-stateful-application/Dockerfile rename to docs/tutorials/stateful-application/Dockerfile diff --git a/docs/tutorials/replicated-stateful-application/mysql-configmap.yaml b/docs/tutorials/stateful-application/mysql-configmap.yaml similarity index 100% rename from docs/tutorials/replicated-stateful-application/mysql-configmap.yaml rename to docs/tutorials/stateful-application/mysql-configmap.yaml diff --git a/docs/tutorials/replicated-stateful-application/mysql-services.yaml b/docs/tutorials/stateful-application/mysql-services.yaml similarity index 100% rename from docs/tutorials/replicated-stateful-application/mysql-services.yaml rename to docs/tutorials/stateful-application/mysql-services.yaml diff --git a/docs/tutorials/replicated-stateful-application/mysql-statefulset.yaml b/docs/tutorials/stateful-application/mysql-statefulset.yaml similarity index 100% rename from docs/tutorials/replicated-stateful-application/mysql-statefulset.yaml rename to docs/tutorials/stateful-application/mysql-statefulset.yaml diff --git a/docs/tutorials/replicated-stateful-application/run-replicated-stateful-application.md b/docs/tutorials/stateful-application/run-replicated-stateful-application.md similarity index 98% rename from docs/tutorials/replicated-stateful-application/run-replicated-stateful-application.md rename to docs/tutorials/stateful-application/run-replicated-stateful-application.md index 299240f80c..a3cbe24c72 100644 --- a/docs/tutorials/replicated-stateful-application/run-replicated-stateful-application.md +++ b/docs/tutorials/stateful-application/run-replicated-stateful-application.md @@ -63,7 +63,7 @@ and running: kubectl create -f mysql-configmap.yaml ``` -{% include code.html language="yaml" file="mysql-configmap.yaml" ghlink="/docs/tutorials/replicated-stateful-application/mysql-configmap.yaml" %} +{% include code.html language="yaml" file="mysql-configmap.yaml" ghlink="/docs/tutorials/stateful-application/mysql-configmap.yaml" %} This ConfigMap provides `my.cnf` overrides that let you independently control configuration on the master and the slaves. @@ -84,7 +84,7 @@ and running: kubectl create -f mysql-services.yaml ``` -{% include code.html language="yaml" file="mysql-services.yaml" ghlink="/docs/tutorials/replicated-stateful-application/mysql-services.yaml" %} +{% include code.html language="yaml" file="mysql-services.yaml" ghlink="/docs/tutorials/stateful-application/mysql-services.yaml" %} The Headless Service provides a home for the DNS entries that the StatefulSet controller will create for each Pod that's part of the set. @@ -109,7 +109,7 @@ Finally, create the StatefulSet by saving the following manifest to kubectl create -f mysql-statefulset.yaml ``` -{% include code.html language="yaml" file="mysql-statefulset.yaml" ghlink="/docs/tutorials/replicated-stateful-application/mysql-statefulset.yaml" %} +{% include code.html language="yaml" file="mysql-statefulset.yaml" ghlink="/docs/tutorials/stateful-application/mysql-statefulset.yaml" %} You can watch the startup progress by running: diff --git a/test/examples_test.go b/test/examples_test.go index e41d97467c..3d6d428087 100644 --- a/test/examples_test.go +++ b/test/examples_test.go @@ -316,7 +316,7 @@ func TestExampleObjectSchemas(t *testing.T) { "secret": {&api.Secret{}}, "secret-env-pod": {&api.Pod{}}, }, - "../docs/tutorials/replicated-stateful-application": { + "../docs/tutorials/stateful-application": { "mysql-services": {&api.Service{}, &api.Service{}}, "mysql-configmap": {&api.ConfigMap{}}, "mysql-statefulset": {&apps.StatefulSet{}},