0
0
Kubernetesdevops~10 mins

kubectl CLI installation and configuration in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to download the latest kubectl binary for Linux.

Kubernetes
curl -LO https://dl.k8s.io/release/[1]/bin/linux/amd64/kubectl
Drag options to blanks, or click blank then click option'
Av1.27.0
Bstable
Ccurrent
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using a specific version number instead of 'latest'.
Using unsupported keywords like 'stable' or 'current'.
2fill in blank
medium

Complete the command to make the kubectl binary executable.

Kubernetes
chmod [1] kubectl
Drag options to blanks, or click blank then click option'
A+x
B777
C-r
D644
Attempts:
3 left
💡 Hint
Common Mistakes
Using numeric permissions like 777 or 644 which may be insecure or incorrect.
Using flags that remove permissions like -r.
3fill in blank
hard

Fix the error in the command to move kubectl to /usr/local/bin.

Kubernetes
sudo mv kubectl [1]
Drag options to blanks, or click blank then click option'
A/usr/bin
B/bin
C/usr/local/sbin
D/usr/local/bin
Attempts:
3 left
💡 Hint
Common Mistakes
Moving kubectl to /usr/local/sbin which is for system admin binaries.
Using /bin or /usr/bin which may be reserved for system binaries.
4fill in blank
hard

Fill both blanks to verify kubectl installation and check its version.

Kubernetes
kubectl [1] && kubectl [2] version --client
Drag options to blanks, or click blank then click option'
Aversion
Bget
Cdescribe
Dconfig
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'get' or 'describe' which are for resources, not version info.
Using 'config' which manages kubeconfig files.
5fill in blank
hard

Fill all three blanks to set the kubeconfig environment variable and verify cluster info.

Kubernetes
export [1]=[2] && kubectl [3] nodes
Drag options to blanks, or click blank then click option'
AKUBECONFIG
B~/.kube/config
Cget
Dset
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'set' instead of 'get' for the kubectl command.
Using wrong environment variable names or paths.