Kubernetes
Prerequisites
Use the Kubernetes command-line tool, kubectl, to deploy and manage applications on Kubernetes. Using kubectl, you can inspect cluster resources; create, delete, and update components; look at your new cluster; and bring up apps.
For development and practice you can use a Minikube cluster, but it only intended for testing without pay for a cluster in a provider.
Useful commands
Deployments and status
Start deployment:
kubectl apply -f nginx-deployment.yamlCheck the status of a deployment:
kubectl rollout status deployments nginx-deploymentkubectl get deploymentskubectl describe deployments nginx-deploymentkubectl rollout historyThen check the status of pod:
kubectl get podskubectl describe pods nginxClean up cluster
You might need to clean up it when you work with it.
Delete all pods:
kubectl delete pods --allDelete all services:
kubectl delete services --allDelete all deployments:
kubectl delete deployments --allDelete all replicasets:
kubectl delete replicasets --allDelete all:
kubectl delete daemonsets,replicasets,services,deployments,pods,rc --allLast updated