Skip to content

Commit fca85d4

Browse files
correct kubectl syntax (#2056)
1 parent 85be8f2 commit fca85d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

content/operate/kubernetes/logs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ sideContainersSpec:
4242
4343
Now the logs can be accessed from in the sidecar. For example by running
4444
45-
```kubectl exec -it <pod-name> -c busybox tail home/logs/supervisord.log```
45+
```kubectl exec -it <pod-name> -c busybox -- tail home/logs/supervisord.log```
4646

4747
The sidecar container is user determined and can be used to format, process and share logs in a specified format and protocol.

content/operate/kubernetes/security/manage-rec-credentials.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The credentials can be used to access the Redis Enterprise admin console or the
4545
1. Access a [pod](https://kubernetes.io/docs/concepts/workloads/pods/) running a Redis Enterprise cluster.
4646

4747
```sh
48-
kubectl exec -it <rec-resource-name>-0 bash
48+
kubectl exec -it <rec-resource-name>-0 -c redis-enterprise-node -- /bin/bash
4949
```
5050

5151
2. Add a new password for the existing user.
@@ -79,7 +79,7 @@ kubectl apply -f -
7979
5. Access a pod running a Redis Enterprise cluster again.
8080

8181
```sh
82-
kubectl exec -it <rec-resource-name>-0 bash
82+
kubectl exec -it <rec-resource-name>-0 -c redis-enterprise-node -- /bin/bash
8383
```
8484

8585
6. Remove the previous password to ensure only the new one applies.

0 commit comments

Comments
 (0)