- Docker
- Kubernetes
- Download and install Docker Desktop for Windows and MacOs from the Docker website
- Once Docker Desktop is installed, open it and go to the Settings menu.
- Click on the Kubernetes tab and enable Kubernetes.
- Wait for Kubernetes to download and install. This may take several minutes.
- Once Kubernetes is installed, open a command prompt and run the following command to verify that Kubernetes is running:
kubectl get nodes
- Or you can run the following command to very that Kubernetes is installed:
kubectl version
- To create a deployment, run the following command:
kubectl create deployment nginx --image=nginx
- To view the deployment, run the following command:
kubectl get deployments
- To view your deployment in a browser, run the following command:
kubectl expose deployment nginx --port=80 --type=LoadBalancer
10.To verify that the service is running, run the following command:
kubectl get services
- Go to localhost to view the deployment.
- To delete the deployment, run the following command:
kubectl delete deployment nginx