It can be thought of as a group of physical or virtual servers where Kubernetes is installed.
Nodes
There are two types of Nodes, Master node is a physical or virtual server that is used to control the Kubernetes cluster.Worker node is the physical or virtual server where workload runs in given container technology.
Pods
The group of containers that shares the same network namespaces.
Labels
These are the key-value pairs defined by the user and associated with Pods.
Master
It controls plane components to provide access points for admins to manage the cluster workloads.
Service
It can be viewed as an abstraction that serves as a proxy for a group of Pods performing a “service”.
2. Kubernetes Commands
Commands
Description
kubectl get node
To list down all worker nodes.
kubectl delete node <node_name>
Delete the given node in cluster.
kubectl top node
Show metrics for a given node.
kubectl describe nodes | grep ALLOCATED -A 5
Describe all the nodes in verbose.
kubectl get pods -o wide | grep <node_name>
List all pods in the current namespace, with more details.
kubectl get no -o wide
List all the nodes with mode details.
kubectl describe no
Describe the given node in verbose.
kubectl annotate node <node_name>
Add an annotation for the given node.
kubectl uncordon node <node_name>
Mark my-node as schedulable.
kubectl label node
Add a label to given node
Commands
Description
kubectl get po
To list the available pods in the default namespace.
kubectl describe pod <pod_name>
To list the detailed description of pod.
kubectl delete pod <pod_name>
To delete a pod with the name.
kubectl create pod <pod_name>
To create a pod with the name.
Kubectl get pod -n <name_space>
To list all the pods in a namespace.
Kubectl create pod <pod_name> -n <name_space>
To create a pod with the name in a namespace.
Commands
Description
kubectl create namespace <namespace_name>
To create a namespace by the given name.
kubectl get namespace
To list the current namespace in a cluster.
kubectl describe namespace <namespace_name>
To display the detailed state of one or more namespaces.
kubectl delete namespace <namespace_name>
To delete a namespace.
kubectl edit namespace <namespace_name>
To edit and update the definition of a namespace.
Commands
Description
kubectl get services
To list one or more services.
kubectl describe services <services_name>
To list the detailed display of services.
kubectl delete services -o wide
To delete all the services.
kubectl delete service < service_name>
To delete a particular service.
Commands
Description
kubectl create deployment <deployment_name>
To create a new deployment.
kubectl get deployment
To list one or more deployments.
kubectl describe deployment <deployment_name>
To list a detailed state of one or more deployments.