modify the file name to increase the contrast (#16845)

This commit is contained in:
diguage
2019-10-15 06:37:51 +08:00
committed by Kubernetes Prow Robot
parent 065efcb313
commit 42247fdae1
@@ -56,7 +56,7 @@ get terminated and replaced by new ones.
At this point, each Pod has one Container that runs the nginx image. Now suppose At this point, each Pod has one Container that runs the nginx image. Now suppose
you want each Pod to have two containers: one that runs nginx and one that runs redis. you want each Pod to have two containers: one that runs nginx and one that runs redis.
Create a file named `patch-file-containers.yaml` that has this content: Create a file named `patch-file.yaml` that has this content:
```yaml ```yaml
spec: spec:
@@ -71,10 +71,10 @@ Patch your Deployment:
{{< tabs name="kubectl_patch_example" >}} {{< tabs name="kubectl_patch_example" >}}
{{{< tab name="Bash" codelang="bash" >}} {{{< tab name="Bash" codelang="bash" >}}
kubectl patch deployment patch-demo --patch "$(cat patch-file-containers.yaml)" kubectl patch deployment patch-demo --patch "$(cat patch-file.yaml)"
{{< /tab >}} {{< /tab >}}
{{< tab name="PowerShell" codelang="posh" >}} {{< tab name="PowerShell" codelang="posh" >}}
kubectl patch deployment patch-demo --patch $(cat patch-file-containers.yaml) kubectl patch deployment patch-demo --patch $(cat patch-file.yaml)
{{< /tab >}}} {{< /tab >}}}
{{< /tabs >}} {{< /tabs >}}
@@ -311,7 +311,7 @@ The following commands are equivalent:
```shell ```shell
kubectl patch deployment patch-demo --patch "$(cat patch-file.json)" kubectl patch deployment patch-demo --patch "$(cat patch-file.yaml)"
kubectl patch deployment patch-demo --patch 'spec:\n template:\n spec:\n containers:\n - name: patch-demo-ctr-2\n image: redis' kubectl patch deployment patch-demo --patch 'spec:\n template:\n spec:\n containers:\n - name: patch-demo-ctr-2\n image: redis'
kubectl patch deployment patch-demo --patch "$(cat patch-file.json)" kubectl patch deployment patch-demo --patch "$(cat patch-file.json)"