mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-27 01:11:53 +02:00
add prometheus adapter ns to custom metrics
becauase otherwise these will be in different places
This commit is contained in:
parent
4dc68103b9
commit
170296603a
@ -4,6 +4,7 @@
|
|||||||
{
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
prometheusAdapter+:: {
|
prometheusAdapter+:: {
|
||||||
|
namespace: $._config.namespace,
|
||||||
// Rules for custom-metrics
|
// Rules for custom-metrics
|
||||||
config+:: {
|
config+:: {
|
||||||
rules+: [
|
rules+: [
|
||||||
@ -87,7 +88,7 @@
|
|||||||
spec: {
|
spec: {
|
||||||
service: {
|
service: {
|
||||||
name: $.prometheusAdapter.service.metadata.name,
|
name: $.prometheusAdapter.service.metadata.name,
|
||||||
namespace: $._config.namespace,
|
namespace: $._config.prometheusAdapter.namespace,
|
||||||
},
|
},
|
||||||
group: 'custom.metrics.k8s.io',
|
group: 'custom.metrics.k8s.io',
|
||||||
version: 'v1beta1',
|
version: 'v1beta1',
|
||||||
@ -105,7 +106,7 @@
|
|||||||
spec: {
|
spec: {
|
||||||
service: {
|
service: {
|
||||||
name: $.prometheusAdapter.service.metadata.name,
|
name: $.prometheusAdapter.service.metadata.name,
|
||||||
namespace: $._config.namespace,
|
namespace: $._config.prometheusAdapter.namespace,
|
||||||
},
|
},
|
||||||
group: 'custom.metrics.k8s.io',
|
group: 'custom.metrics.k8s.io',
|
||||||
version: 'v1beta2',
|
version: 'v1beta2',
|
||||||
@ -141,7 +142,7 @@
|
|||||||
subjects: [{
|
subjects: [{
|
||||||
kind: 'ServiceAccount',
|
kind: 'ServiceAccount',
|
||||||
name: $.prometheusAdapter.serviceAccount.metadata.name,
|
name: $.prometheusAdapter.serviceAccount.metadata.name,
|
||||||
namespace: $._config.namespace,
|
namespace: $._config.prometheusAdapter.namespace,
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
customMetricsClusterRoleBindingHPA: {
|
customMetricsClusterRoleBindingHPA: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user