Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 280 Bytes

ks-question-01.md

File metadata and controls

16 lines (13 loc) · 280 Bytes

Question 01 - Cluster Contexts

Get all cluster context names:

kubectl config get-contexts -o name

Get current context:

kubectl config current-context

Get current context without using kubectl:

grep current-context ~/.kube/config | cut -f2 -d " "