Update podpreset.md

reviewable/pr6424/r2
Qiming 2017-11-23 20:53:58 +08:00 committed by GitHub
parent 4c083fc73e
commit 7df8556653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -22,13 +22,13 @@ Preset.
{% include code.html language="yaml" file="podpreset-preset.yaml" ghlink="/docs/tasks/inject-data-application/podpreset-preset.yaml" %} {% include code.html language="yaml" file="podpreset-preset.yaml" ghlink="/docs/tasks/inject-data-application/podpreset-preset.yaml" %}
1. Create the PodPreset: Create the PodPreset:
```shell ```shell
kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-preset.yaml kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-preset.yaml
``` ```
1. Examine the created PodPreset: Examine the created PodPreset:
```shell ```shell
kubectl get podpreset kubectl get podpreset
@ -36,17 +36,17 @@ NAME AGE
allow-database 1m allow-database 1m
``` ```
The new PodPreset will act upon any pod that has label `role: frontend`. The new PodPreset will act upon any pod that has label `role: frontend`.
{% include code.html language="yaml" file="podpreset-pod.yaml" ghlink="/docs/tasks/inject-data-application/podpreset-pod.yaml" %} {% include code.html language="yaml" file="podpreset-pod.yaml" ghlink="/docs/tasks/inject-data-application/podpreset-pod.yaml" %}
1. Create Pod Create a pod:
```shell ```shell
kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-pod.yaml kubectl create -f https://k8s.io/docs/tasks/inject-data-application/podpreset-pod.yaml
``` ```
1. List the running Pods: List the running Pods:
```shell ```shell
kubectl get pods kubectl get pods