- K8s: deploy K8s and nfs server VM environment
- EFK-kubernetes: deploy EFK to k8s
- Frontend: Vue frontend package with DockerFile
- Backend: Express backend package
- k8s-config: yaml file for deployment
We separate this project into two parts, frontend and backend.
- you can see the README file in the 'K8s' folder and follow the descrptions.
- helm install prometheus stable/prometheus-operator
- Then, you can use 'kubectl port-forward deployment/prometheus-grafana 3000' to forward port and use 'http://localhost:3000' to open Grafana.
- you can see the README file in the 'EFK-kubernetes' folder and follow the descrptions.
- docker build -t frontend .
- docker tag ds_frontend gokudera17/ds_fronted
- docker push gokudera17/ds_frontend
In this section, you can use yaml file in 'k8s-config' to deploy service.
- kubectl create -f myweb-frontend.yaml
- kubectl apply -f myweb-backend.yaml
- kubectl apply -f servicemonitor-web.yaml
- kubectl apply -f mysql.yaml
- kubectl apply -f mysql-secret.yaml
- kubectl apply -f mysql-init-configmap.yaml
- kubectl apply -f mysql-configmap.yaml
- kubectl apply -f backend-ingress.yaml