An e-commerce service deployable to a Kubernetes.
- start minikube
- open dashboard
kubectl apply -f k8s-configs/
or
kubectl apply -f .\deployment-identity-service.yaml
kubectl apply -f .\service-identity-service.yaml
# etc
kubectl apply -f ingress.yaml
This ip can be added to hosts file with local.microservices
(can be configured in ingerss.yaml
).
minikube ip
Now you can access the service at http://local.microservices/login
minikube start
minikube addons enable ingress
minikube dashboard
minikube docker-env
& minikube -p minikube docker-env --shell powershell | Invoke-Expression
kubectl get services
docker build -t <image-name> .
kubectl run <pod-name> --image=<image-name> --image-pull-policy=Never --restart=Never
kubectl expose pod <pod-name> --type=LoadBalancer --port=3000 --target-port=3000
kubectl edit service product-service-container
see [[#See Active Services]] to get the external ip
minikube tunnel
docker tag identity-server:latest chirbard/k8-ecom-identity-service:latest
docker push chirbard/k8-ecom-identity-service:latest