Terms
Cluster: a set of nodes.
Node: a virtual machine(VM) or physical machine.
Master node: managing working workers.
Worker node: running applications.
Pod: a pod is the smallest deployable unit in K8s and not containers. A pod enclose containers and volumes(used for sharing data among containers). A pod has a unique IP address.
Run K8 locally
Minikube: installing docker + minikube
Kubectl
K8 command line tool, providing commands to gain your cluster residing in the minikube
then we may deploy, inspect, edit resources, debug, and view logs.
minikube start > start the k8
kubectl get nodes> showing all nodes running in the k8
kubectl get pods -A > showing all pods in all namespaces
creating k8 deployment.yml VC.
kubectl apply -f deployment.yml
kubectl get svc> get service(defined in deployment YAML file service section)
minikube service myapp : access service port
start tunnel for service myapp via URL
No comments:
Post a Comment