Chapter 3. Deploying a Kubernetes Cluster Flashcards
how do you create a local cluster ?
minikube start
how do you stop the local cluster ?
minikube stop
how do you remove the cluster ?
minikube delete
how do we we check cluster status ?
kubeclt version
how do we get a simple diagnostic for the cluster ?
kubectl get componentstatuses
how do you list all the nodes in your cluster ?
kubectl get nodes
how do you get more information about a node ?
kubectl describe nodes node-1
What does Kubernetes proxy do ?
The Kubernetes proxy is responsible for routing network traffic to load-balanced services in the Kubernetes cluster. To do its job, the proxy must be present on every node in the cluster.
how can you list the proxies ?
kubectl get daemonSets –namespace=kube-system kube-proxy
what is a Kubernetes DNS ?
A Kubernetes DNS provides naming and discovery for the services that are defined in the cluster. This DNS server also runs as a replicated service on the cluster
How can you get information about the Kubernetes DNS Server ?
kubectl get deployments –namespace=kube-system core-dns
how can you start Kubernetes GUI ?
kubectl get deployments –namespace=kube-system kubernetes-dashboard
or
kubectl proxy
How can you change the default namespace more permanently ?
- First create a context
kubectl config set-context my-context –namespace=mystuff - Sedond, use the context
kubectl config use-context my-context
What is the most basic command to for viewing Kubernetes objects ?
kubectl get
How can you get more detailed information about an objetct
- Adding: -o
- Adding: -o json
- Adding: -o yaml
- kubectl describe