Question-71: What is the use of Kubernetes UI?

Answer: You can use Kubernetes UI to explore the Kubernetes Distributed cluster as web UI you can also create new containers from UI. You may see some provider does not provide such UI. Hence, you have to be comfortable with command line utility as well.

Question-72: Which is the command line utility available to interact with Kubernetes API?

Answer: “kubectl” is the utility which can be used to interact with the Kubernetes API. You can use this to create Kubernetes objects as well.

Question-73: What is “Namespaces” in Kubernetes?

Answer: Using namespaces Kubernetes can organize the objects in the Cluster. Imagine each individual namespace as Unix Directory or Windows folder. “default” namespace is a default namespace with “kubectl” interacts.

Question-74: How can you interact with different namespace using “kubectl”?

Answer: To interact with different namespace like “he_default” you can use “kubectl --namespace=he_default”. And similarly, if you want to interact with all the namespaces then you can use “kubectl --all-namespace” flag.

Question-75: What is the “context”?

Answer: You can use “context” to manage the clusters. And some other activities like

Adding new namespace as default namespace. You can use below command to do that

kubectl config set-context he-context --namespace=he_default

In above command it is creating new context named “he-context” and also set default namespace in it. However, to start using this newly created context you have to run below command

kubectl config use-context he-context

You can also use context to authenticate users to cluster.