Skip to content

Commit 70e9972

Browse files
authored
Fix kubectl exec syntax (#2916)
1 parent 4c3a8fb commit 70e9972

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

en/enable-tls-between-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ In this step, you need to perform the following operations:
16311631
{{< copyable "shell-regular" >}}
16321632
16331633
``` shell
1634-
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} sh
1634+
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} -- sh
16351635
```
16361636
16371637
Use `pd-ctl`:
@@ -1650,7 +1650,7 @@ In this step, you need to perform the following operations:
16501650
{{< copyable "shell-regular" >}}
16511651
16521652
``` shell
1653-
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} sh
1653+
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} -- sh
16541654
```
16551655
16561656
Use `tikv-ctl`:

en/enable-tls-for-dm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ Get into the DM-master Pod:
548548
{{< copyable "shell-regular" >}}
549549
550550
``` shell
551-
kubectl exec -it ${cluster_name}-dm-master-0 -n ${namespace} sh
551+
kubectl exec -it ${cluster_name}-dm-master-0 -n ${namespace} -- sh
552552
```
553553
554554
Use `dmctl`:

zh/enable-tls-between-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ aliases: ['/docs-cn/tidb-in-kubernetes/dev/enable-tls-between-components/']
16171617
{{< copyable "shell-regular" >}}
16181618
16191619
``` shell
1620-
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} sh
1620+
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} -- sh
16211621
```
16221622
16231623
使用 `pd-ctl`
@@ -1636,7 +1636,7 @@ aliases: ['/docs-cn/tidb-in-kubernetes/dev/enable-tls-between-components/']
16361636
{{< copyable "shell-regular" >}}
16371637
16381638
``` shell
1639-
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} sh
1639+
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} -- sh
16401640
```
16411641
16421642
使用 `tikv-ctl`

zh/enable-tls-for-dm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ spec:
521521
{{< copyable "shell-regular" >}}
522522
523523
``` shell
524-
kubectl exec -it ${cluster_name}-dm-master-0 -n ${namespace} sh
524+
kubectl exec -it ${cluster_name}-dm-master-0 -n ${namespace} -- sh
525525
```
526526
527527
使用 `dmctl`

0 commit comments

Comments
 (0)