submarine icon indicating copy to clipboard operation
submarine copied to clipboard

SUBMARINE-1104. Install Kube-Prometheus-Stack via helm

Open rayray2002 opened this issue 3 years ago • 8 comments

What is this PR for?

Prometheus + Grafana are good data visualizing tools for k8s. Adding them to Submarine to monitor matrices and resources.

kube-prometheus-stack is a collection of Kubernetes, Grafana and Prometheus configurations. Easy for for setting up and monitoring.

What type of PR is it?

[Feature]

Todos

  • [x] - Deploy ingressroute in submarine
  • [ ] - License

What is the Jira issue?

https://issues.apache.org/jira/browse/SUBMARINE-1104

How should this be tested?

k8s ver: 1.18.20

cd subamrine
kubectl apply -f ./submarine-cloud-v2/artifacts/submarine/submarine-grafana.yaml

http://localhost:32080/grafana/

ID: admin Password: prom-operator

Screenshots (if appropriate)

截圖 2021-12-07 下午12 39 12

Questions:

  • Do the license files need updating? No
  • Are there breaking changes for older versions? No (I think)
  • Does this need new documentation? Yes

rayray2002 avatar Dec 10 '21 18:12 rayray2002

Should I add license to every files in kube-prometheus-stack?

rayray2002 avatar Dec 11 '21 07:12 rayray2002

Yes, we should. it's huge PR, will we use all the files in this PR? Could we remove some of the files? you can refer to https://devopscube.com/setup-prometheus-monitoring-on-kubernetes

pingsutw avatar Dec 11 '21 13:12 pingsutw

Yes, we should. it's huge PR, will we use all the files in this PR? Could we remove some of the files? you can refer to https://devopscube.com/setup-prometheus-monitoring-on-kubernetes

It is a way to install it but seems not a common way. kube-prometheus-stack is well maintained and updated, and the configs are easier to configure. Maybe I can find is there other way to pass configs in value.yaml without extracting the package, or do anyone know better solution?

rayray2002 avatar Dec 11 '21 16:12 rayray2002

@rayray2002 I think you maybe use helm dependency. In this way, dependencies can be directly downloaded into chart for use ~

cdmikechen avatar Dec 14 '21 13:12 cdmikechen

@KUAN-HSUN-LI Install it by helm dependency and apply values by a yaml file. TODO:

  • [ ] Codegen check (I don't really know why QQ)

rayray2002 avatar Jan 14 '22 06:01 rayray2002

@KUAN-HSUN-LI Install it by helm dependency and apply values by a yaml file. TODO:

  • [ ] Codegen check (I don't really know why QQ)

Maybe you need to update your codes to newest

cdmikechen avatar Jan 15 '22 01:01 cdmikechen

@rayray2002 thank you, I'm going to merge this PR

pingsutw avatar Jan 25 '22 04:01 pingsutw

@pingsutw I will take over this PR.

KUAN-HSUN-LI avatar Feb 26 '22 14:02 KUAN-HSUN-LI