Skip to content

Instantly share code, notes, and snippets.

@adrianriobo
Last active May 20, 2020 07:05
Show Gist options
  • Save adrianriobo/a133f4454d14a23d65c143438c07a671 to your computer and use it in GitHub Desktop.
Save adrianriobo/a133f4454d14a23d65c143438c07a671 to your computer and use it in GitHub Desktop.
Kubectl commands
#Go templating with special characters:
#Check ephemeral storage per node due to pod eviction
kubectl get nodes $NODE_ID \
-o go-template='{{ $ephemeral := index .status.allocatable "ephemeral-storage" }}{{ $ephemeral}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment