Skip to content

AaronLee22/Onther_Prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onther Core Dev Korea Univ Mentoring (infra)

Docker

Run application with Docker

client Dockerfile server / Dockerfile

Kubernetes

This tutorial is progressed in a minikube.

Run application with k8s

build image

eval $(minikube docker-env)
cd server
docker build -t kube-mern-server .
cd ../client
docker build -t kube-mern-client .

deploy image to k8s

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

external access

minikube service frontend-service --url

access application through url

k8s Monitoring (prometheus & grafana)

Install all prometheus, grafana, helm

add repository

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts

deploy

helm install prometheus prometheus-community/prometheus -f values-prometheus.yml
helm install grafana grafana/grafana -f values-grafana.yml

external access

minikube service grafana --url

uninstall

helm uninstall grafana
helm uninstall prometheus

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published