Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 1

9r41cuFdUp2JjT6CHygFdPC2timpGcQhXIWbQwmN

# go current directory and run this cmmd


docker build -t imagename:version .
# push image at docker repo
docker push dockerRep_url
1.minikube start

2.create helm chart_name

3.do chnages like give repo_link and development.yaml

4.install the prooject by release name


-helm install release name dir_pathOfchart

5.add helm image of prometheus and grafana


- helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
- helm repo add grafana https://grafana.github.io/helm-charts
6. update the repo
- helm repo update
helm install grafana grafana/grafana

helm install prometheus prometheus-community/prometheus

7.efit configuration file of prometheus


- kubectl get cm
- kubectl edit cm prometheus-server
---add therse line:-
scrape_configs:
- job_name: my-application
static_configs:
- targets:
# to confirm the changes:-
- kubectl get cm file_name -o yaml

- 192.168.58.2:XXXX Note: - this is your pod id where application is running

8.expose the prometheus clusterIp at the nodeport


- kubectl expose service prometheus-server --type=NodePort --target-port=9090 –
name=prometheus-server-ext

9. find prometheus ip
- minikube service prometheus-server-ext
- XXX.XX.XX.X:xxxxx

10 give target ip to grafana to take metrix by pass minikube of prometheus .

You might also like