Last active
May 20, 2020 07:05
-
-
Save adrianriobo/a133f4454d14a23d65c143438c07a671 to your computer and use it in GitHub Desktop.
Kubectl commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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