Consolidate YAML files [part-3] (#9237)

This PR consolidates YAML files used in `tasks/run-application`
subdirectory.
This commit is contained in:
Qiming
2018-07-03 02:15:20 +08:00
committed by k8s-ci-robot
parent 378e061cd3
commit a11e02d575
12 changed files with 20 additions and 18 deletions
@@ -60,10 +60,10 @@ and a StatefulSet.
Create the ConfigMap from the following YAML configuration file:
```shell
kubectl create -f https://k8s.io/docs/tasks/run-application/mysql-configmap.yaml
kubectl create -f https://k8s.io/examples/application/mysql/mysql-configmap.yaml
```
{{< code file="mysql-configmap.yaml" >}}
{{< codenew file="application/mysql/mysql-configmap.yaml" >}}
This ConfigMap provides `my.cnf` overrides that let you independently control
configuration on the MySQL master and slaves.
@@ -80,10 +80,10 @@ based on information provided by the StatefulSet controller.
Create the Services from the following YAML configuration file:
```shell
kubectl create -f https://k8s.io/docs/tasks/run-application/mysql-services.yaml
kubectl create -f https://k8s.io/examples/application/mysql/mysql-services.yaml
```
{{< code file="mysql-services.yaml" >}}
{{< codenew file="application/mysql/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.
@@ -106,10 +106,10 @@ writes.
Finally, create the StatefulSet from the following YAML configuration file:
```shell
kubectl create -f https://k8s.io/docs/tasks/run-application/mysql-statefulset.yaml
kubectl create -f https://k8s.io/examples/application/mysql/mysql-statefulset.yaml
```
{{< code file="mysql-statefulset.yaml" >}}
{{< codenew file="application/mysql/mysql-statefulset.yaml" >}}
You can watch the startup progress by running: