- Run
brew install minikube
command to installminikube
for Mac - Run
minikube start --driver=docker
command to start a cluster using the docker driver - Run
minikube status
command to get the status of the localKubernetes
cluster - Run
eval $(minikube docker-env)
command to allowKubernetes
to readDocker
repository - Run
cd api-gateway/
command to enter the directory - Run
docker build -t api-gateway .
command to createDocker
image - Run
kubectl apply -f ./.helm/templates/k8s-deployment.yml
command to createk8s deployment
kind - Run
kubectl get deployments
command to getdeployments
- Run
kubectl get pods
command to getpods
- Run
kubectl logs pod-name
command to reach specificpod logs
- Run
kubectl apply -f ./.helm/templates/k8s-service.yml
command to createk8s service
kind - Run
kubectl get service
orkubectl get svc
command to getservice
- Run
kubectl get nodes -o wide
command to verifynode ip
.INTERNAL-IP
is the same as theminikube ip
- Run
minikube service api-gateway-service
command to getURL
- For example: if the
URL
is http://127.0.0.1:50651/, then theSwagger
is http://127.0.0.1:50651/swagger-ui.html
- For example: if the
- Run
minikube dashboard
command to openminikube dashboard via a browser