Skip to content

Commit

Permalink
Move examples ahead of commands that use them
Browse files Browse the repository at this point in the history
In support of kubernetes#12740

The aim is to adopt a consistent style around providing downloadable
examples for use with kubectl, etc.
  • Loading branch information
sftim committed May 3, 2019
1 parent 7638704 commit efaf210
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ and a StatefulSet.

Create the ConfigMap from the following YAML configuration file:

{{< codenew file="application/mysql/mysql-configmap.yaml" >}}

```shell
kubectl apply -f https://k8s.io/examples/application/mysql/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.
In this case, you want the master to be able to serve replication logs to slaves
Expand All @@ -79,12 +79,12 @@ based on information provided by the StatefulSet controller.

Create the Services from the following YAML configuration file:

{{< codenew file="application/mysql/mysql-services.yaml" >}}

```shell
kubectl apply -f https://k8s.io/examples/application/mysql/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.
Because the Headless Service is named `mysql`, the Pods are accessible by
Expand All @@ -105,12 +105,12 @@ writes.

Finally, create the StatefulSet from the following YAML configuration file:

{{< codenew file="application/mysql/mysql-statefulset.yaml" >}}

```shell
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-statefulset.yaml
```

{{< codenew file="application/mysql/mysql-statefulset.yaml" >}}

You can watch the startup progress by running:

```shell
Expand Down

0 comments on commit efaf210

Please sign in to comment.