Skip to content

Commit 1eab5f5

Browse files
authored
Fix kubectl exec syntax (#2916) (#2935)
1 parent 32cf20d commit 1eab5f5

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
@@ -1630,7 +1630,7 @@ In this step, you need to perform the following operations:
16301630
{{< copyable "shell-regular" >}}
16311631
16321632
``` shell
1633-
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} sh
1633+
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} -- sh
16341634
```
16351635
16361636
Use `pd-ctl`:
@@ -1649,7 +1649,7 @@ In this step, you need to perform the following operations:
16491649
{{< copyable "shell-regular" >}}
16501650
16511651
``` shell
1652-
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} sh
1652+
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} -- sh
16531653
```
16541654
16551655
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
@@ -1616,7 +1616,7 @@ summary: 在 Kubernetes 上如何为 TiDB 集群组件间开启 TLS。
16161616
{{< copyable "shell-regular" >}}
16171617
16181618
``` shell
1619-
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} sh
1619+
kubectl exec -it ${cluster_name}-pd-0 -n ${namespace} -- sh
16201620
```
16211621
16221622
使用 `pd-ctl`
@@ -1635,7 +1635,7 @@ summary: 在 Kubernetes 上如何为 TiDB 集群组件间开启 TLS。
16351635
{{< copyable "shell-regular" >}}
16361636
16371637
``` shell
1638-
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} sh
1638+
kubectl exec -it ${cluster_name}-tikv-0 -n ${namespace} -- sh
16391639
```
16401640
16411641
使用 `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)