Comand for stern #135
Answered
by
rkmathi
robinge330
asked this question in
Q&A
Comand for stern
#135
-
Please could you guide the syntax to use |
Beta Was this translation helpful? Give feedback.
Answered by
rkmathi
Jun 19, 2021
Replies: 1 comment 5 replies
-
You have to pass your KUBECONFIG file to docker container and specify it. If KUBECONFIG file is in $ docker run --rm \
--mount type=bind,readonly,source=$HOME/.kube,target=/.kube \
-e KUBECONFIG=/.kube/config \
ghcr.io/stern/stern:latest -n default . |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
superbrothers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to pass your KUBECONFIG file to docker container and specify it.
If KUBECONFIG file is in
$HOME/.kube/config
, you can execute it like this.