diff --git a/CHANGELOG.md b/CHANGELOG.md index e54e636d..551381fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel ### Added - [#237](https://github.com/thanos-io/kube-thanos/pull/237) Add new bucket replicate component. +- [#245](https://github.com/thanos-io/kube-thanos/pull/245) Support scraping config reloader sidecar for ruler. ### Fixed diff --git a/examples/all/manifests/thanos-rule-service.yaml b/examples/all/manifests/thanos-rule-service.yaml index e631670d..080fe0e3 100644 --- a/examples/all/manifests/thanos-rule-service.yaml +++ b/examples/all/manifests/thanos-rule-service.yaml @@ -17,6 +17,9 @@ spec: - name: http port: 10902 targetPort: 10902 + - name: reloader + port: 9533 + targetPort: 9533 selector: app.kubernetes.io/component: rule-evaluation-engine app.kubernetes.io/instance: thanos-rule diff --git a/examples/all/manifests/thanos-rule-serviceMonitor.yaml b/examples/all/manifests/thanos-rule-serviceMonitor.yaml index 2cc13670..7c70eb5a 100644 --- a/examples/all/manifests/thanos-rule-serviceMonitor.yaml +++ b/examples/all/manifests/thanos-rule-serviceMonitor.yaml @@ -17,6 +17,7 @@ spec: - namespace - pod targetLabel: instance + - port: reloader selector: matchLabels: app.kubernetes.io/component: rule-evaluation-engine diff --git a/examples/all/manifests/thanos-rule-statefulSet.yaml b/examples/all/manifests/thanos-rule-statefulSet.yaml index e4f269da..a6b0d069 100644 --- a/examples/all/manifests/thanos-rule-statefulSet.yaml +++ b/examples/all/manifests/thanos-rule-statefulSet.yaml @@ -74,6 +74,8 @@ spec: name: grpc - containerPort: 10902 name: http + - containerPort: 9533 + name: reloader readinessProbe: failureThreshold: 18 httpGet: diff --git a/jsonnet/kube-thanos/kube-thanos-rule.libsonnet b/jsonnet/kube-thanos/kube-thanos-rule.libsonnet index 562274b0..50402844 100644 --- a/jsonnet/kube-thanos/kube-thanos-rule.libsonnet +++ b/jsonnet/kube-thanos/kube-thanos-rule.libsonnet @@ -23,6 +23,7 @@ local defaults = { ports: { grpc: 10901, http: 10902, + reloader: 9533, }, tracing: {}, @@ -249,6 +250,7 @@ function(params) { targetLabel: 'instance', }], }, + { port: 'reloader' }, ], }, },