→ cat nodes-taint.tmpl
{{printf "%-50s %-12s\n" "Node" "Taint"}}
{{- range .items}}
{{- if $taint := (index .spec "taints") }}
{{- .metadata.name }}{{ "\t" }}
{{- range $taint }}
{{- .key }}={{ .value }}:{{ .effect }}{{ "\t" }}
{{- end }}
{{- "\n" }}
{{- end}}
{{- end}}
(ansible)
→ kubectl get nodes -o go-template-file="./nodes-taint.tmpl"
Node Taint
<host>.ec2.internal key=value:NoSchedule
Created
April 16, 2018 22:22
-
-
Save benjaminws/36b74c6090c156d3a7b5c1e6416c4229 to your computer and use it in GitHub Desktop.
list node taints
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment