client Dockerfile server / Dockerfile
This tutorial is progressed in a minikube.
eval $(minikube docker-env)
cd server
docker build -t kube-mern-server .
cd ../client
docker build -t kube-mern-client .
cd kubernetes
kubectl apply -f mongo-secret.yaml
kubectl apply -f mongodb-pvc.yaml
kubectl apply -f mongo.yaml
kubectl apply -f mern-backend.yaml
kubectl apply -f frontend.yaml
minikube service frontend-service --url
Install all prometheus, grafana, helm
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm install prometheus prometheus-community/prometheus -f values-prometheus.yml
helm install grafana grafana/grafana -f values-grafana.yml
minikube service grafana --url
helm uninstall grafana
helm uninstall prometheus