In this video, you will learn how to set up and run Kubernetes on your mac without the need for any cloud service such as GCP or AWS. Although this guide is only for your mac, you can set up Kubernetes on any other computer by following similar steps.
After this video, you should be able to run your first container in Kubernetes on your mac.
Step 1: Docker desktop link:
https://docs.docker.com/desktop/mac/i...
Step 2. Install hyperkit:
brew install hyperkit
Step 3. Install minikube.
curl -LO https://storage.googleapis.com/miniku...
sudo install minikube-darwin-amd64 /usr/local/bin/minikube
Step 4: Start minikube
minikube start --driver=hyperkit
Step 5: Create a namespace in your cluster
kubectl create namespace -n kubernetes-namespace
Step 6: Sample code link
https://github.com/leveluplab/react-a...
Step 7: Build docker image
eval $(minikube docker-env)
docker build -t frontend-react-app-image -f docker/Dockerfile .
Step 8: Create deployment and service on Kubernetes.
Deployment
kubectl apply -f deployment/deployment.yaml -n kubernetes-namespace
Service
kubectl apply -f deployment/service.yaml -n kubernetes-namespace
Step 9: See your running app.
minikube service frontend-app-service -n kubernetes-namespace
Смотрите видео How to run Kubernetes locally on Mac онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Level Up Lab 09 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,87 раз и оно понравилось 2 людям.