This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/monitoring/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/kube-prometheus-node-ports.libsonnet

19 lines
418 B
Plaintext
Raw Normal View History

2020-12-11 20:32:59 +00:00
local patch(ports) = {
spec+: {
ports: ports,
type: 'NodePort',
},
};
2020-08-19 18:51:06 +00:00
{
prometheus+: {
2020-12-11 20:32:59 +00:00
service+: patch([{ name: 'web', port: 9090, targetPort: 'web', nodePort: 30900 }]),
2020-08-19 18:51:06 +00:00
},
alertmanager+: {
2020-12-11 20:32:59 +00:00
service+: patch([{ name: 'web', port: 9093, targetPort: 'web', nodePort: 30903 }]),
2020-08-19 18:51:06 +00:00
},
grafana+: {
2020-12-11 20:32:59 +00:00
service+: patch([{ name: 'http', port: 3000, targetPort: 'http', nodePort: 30902 }]),
2020-08-19 18:51:06 +00:00
},
}