submarine
submarine copied to clipboard
SUBMARINE-1104. Install Kube-Prometheus-Stack via helm
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)
Questions:
- Do the license files need updating? No
- Are there breaking changes for older versions? No (I think)
- Does this need new documentation? Yes
Should I add license to every files in kube-prometheus-stack?
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
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 I think you maybe use helm dependency. In this way, dependencies can be directly downloaded into chart for use ~
@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)
@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
@rayray2002 thank you, I'm going to merge this PR
@pingsutw I will take over this PR.