Powershell note for kubectl patch command (#15308)
* Improvement for kubectl patch command This command does not work in Powershell. A specific note would help the developers to take care of the same. * Fixed review comments Added different tabs for bash and PowerShell. * Removing note for PowerShell Hugo is not able to add note along with shortcode. Hence removing note.pull/15717/head
parent
2928d6ac9c
commit
7bcc824779
|
@ -69,9 +69,14 @@ spec:
|
|||
|
||||
Patch your Deployment:
|
||||
|
||||
```shell
|
||||
{{< tabs name="kubectl_patch_example" >}}
|
||||
{{{< tab name="Bash" codelang="bash" >}}
|
||||
kubectl patch deployment patch-demo --patch "$(cat patch-file-containers.yaml)"
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab name="PowerShell" codelang="posh" >}}
|
||||
kubectl patch deployment patch-demo --patch $(cat patch-file-containers.yaml)
|
||||
{{< /tab >}}}
|
||||
{{< /tabs >}}
|
||||
|
||||
View the patched Deployment:
|
||||
|
||||
|
|
Loading…
Reference in New Issue