Kubernetes 2 - LAB/in Practice Flashcards
What is Minikube?
A version of Kubernetes (That was uses in labs)
What is kubectl?
The command line tool to interact with a kubernates cluster
What are Pods?
The smallest deployable unit of computing.
They hold:
- one or more containers.
- storage resources.
- a unique network IP
- options for how containers should run.
What is the command for viewing the running pods of a system?
kubectl get pods --namespace=kube-system
What is a deployment in Kubernates?
It is a High-level concept that manages Pods
- Allows for easy updates and roll-backs and ensures a certain number of pods are always running
What does services allow us to do?
Allows us to create a unique, presistant IP address and domain names for a deployment.
what does the command minikube kubectl get nodes
do?
Views all the nodes in the cluster
What does the command minikube kubectl get pods
do?
lists all the running pods
What is a Pod?
Its the smallest unit of deployment.
Its a group of one or more containers, with a shared storage and network resources
What is the Purpose of --
in the command minikube kubectl -- run nginx --image=nginx
--
serves as a separator between minikube kubectl
and the arguments that should be passed to the kubectl
command.
minikube kubectl
: tells minikube to run the kubectl
command in the context of the Minikube cluster--
: indicates that what follows should be passed directly to kubectl
without any interpretation by Minikuberun nginx --image=nginx
: this is the actual kubectl
command and its arguments. It instructs kubctl
to create a new deployment named nginx
using the nginx
image.
without the --
separator, Minikube might try to interprete the arguments as its own options, which could lead to errors.
How do you start minikube?
minikube start
This creates a Clustor
How do you check the status of Minikube?
minikube status
How does kubectl
work?
It comunicates with the cluster’s API server via HTTPS.
How would you ssh intoyour minikube VM?
minikube ssh
You are now inside the minikube node
How would you create/run a pod on a nginx server?
minikube kubectl run nginx --image=nginx