Skip to content

Instantly share code, notes, and snippets.

@stvnwrgs
Last active March 27, 2020 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stvnwrgs/2c18aba6e6f5b87d61ab3dd1d1104868 to your computer and use it in GitHub Desktop.
Save stvnwrgs/2c18aba6e6f5b87d61ab3dd1d1104868 to your computer and use it in GitHub Desktop.

Done for fish

General

Get latest created pod in namespace kubectl -n $NAMESPACE logs (kubectl -n $NAMESPACE get pods --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1:].metadata.name}")

Network problems

start network debugging container kubectl run --generator=run-pod/v1 delete-me-toolbox -it --rm --restart=Never --image=gcr.io/kubernetes-e2e-test-images/dnsutils:1.3 /bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment