diff --git a/jsonnet/kube-prometheus/kube-prometheus-thanos.libsonnet b/jsonnet/kube-prometheus/kube-prometheus-thanos.libsonnet index 4ef00612..28b76dff 100644 --- a/jsonnet/kube-prometheus/kube-prometheus-thanos.libsonnet +++ b/jsonnet/kube-prometheus/kube-prometheus-thanos.libsonnet @@ -57,8 +57,8 @@ local servicePort = k.core.v1.service.mixin.spec.portsType; thanosPeerService: local thanosPeerPort = servicePort.newNamed('cluster', 10900, 'cluster'); service.new('thanos-peers', { 'thanos-peer': 'true' }, thanosPeerPort) + + service.mixin.metadata.withNamespace($._config.namespace) + service.mixin.spec.withType('ClusterIP') + service.mixin.spec.withClusterIp('None'), - }, }