Skip to content

Comand for stern #135

Answered by rkmathi
robinge330 asked this question in Q&A
Jun 18, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

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.

$ docker run --rm \
  --mount type=bind,readonly,source=$HOME/.kube,target=/.kube \
  -e KUBECONFIG=/.kube/config \
  ghcr.io/stern/stern:latest -n default .

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@robinge330
Comment options

@robinge330
Comment options

@robinge330
Comment options

@rkmathi
Comment options

@robinge330
Comment options

Answer selected by superbrothers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants