|
1 | 1 | local generateSecret = import '../utils/generate-secret.libsonnet';
|
2 | 2 | local querier = import 'github.com/thanos-io/kube-thanos/jsonnet/kube-thanos/kube-thanos-query.libsonnet';
|
3 | 3 | local withDescription = (import '../utils/add-annotations.libsonnet').withDescription;
|
| 4 | +local testFilePlaceholder = (import '../utils/add-annotations.libsonnet').testFilePlaceholder; |
4 | 5 | local requiredRoles = (import '../utils/add-annotations.libsonnet').requiredRoles;
|
5 | 6 | local requiredClusterRoles = (import '../utils/add-annotations.libsonnet').requiredClusterRoles;
|
6 | 7 |
|
@@ -199,16 +200,22 @@ function(params)
|
199 | 200 | |||
|
200 | 201 | Expose the Thanos Querier web server within the cluster on the following ports:
|
201 | 202 | * Port %d provides access to all the Thanos Querier endpoints. %s
|
| 203 | + %s |
202 | 204 | * Port %d provides access to the `/api/v1/query`, `/api/v1/query_range/`, `/api/v1/labels`, `/api/v1/label/*/values`, and `/api/v1/series` endpoints restricted to a given project. %s
|
| 205 | + %s |
203 | 206 | * Port %d provides access to the `/api/v1/alerts`, and `/api/v1/rules` endpoints restricted to a given project. %s
|
| 207 | + %s |
204 | 208 | * Port %d provides access to the `/metrics` endpoint only. This port is for internal use, and no other usage is guaranteed.
|
205 | 209 | ||| % [
|
206 | 210 | $.service.spec.ports[0].port,
|
207 |
| - requiredClusterRoles(['cluster-monitoring-view'], true), |
| 211 | + requiredClusterRoles(['cluster-monitoring-view', 'cluster-monitoring-metrics-api'], false, 'openshift-monitoring'), |
| 212 | + testFilePlaceholder('openshift-monitoring', 'thanos-querier', $.service.spec.ports[0].port), |
208 | 213 | $.service.spec.ports[1].port,
|
209 | 214 | requiredClusterRoles(['view'], false, ''),
|
| 215 | + testFilePlaceholder('openshift-monitoring', 'thanos-querier', $.service.spec.ports[1].port), |
210 | 216 | $.service.spec.ports[2].port,
|
211 | 217 | requiredClusterRoles(['monitoring-rules-edit', 'monitoring-edit', 'monitoring-rules-view'], false, ''),
|
| 218 | + testFilePlaceholder('openshift-monitoring', 'thanos-querier', $.service.spec.ports[2].port), |
212 | 219 | $.service.spec.ports[3].port,
|
213 | 220 | ],
|
214 | 221 | ),
|
|
0 commit comments