Skip to content

Commit

Permalink
Convert thanos ruler service headless for discovery (#78)
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun authored Dec 17, 2019
1 parent c37db79 commit ef67c8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-ruler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
name: thanos-ruler
namespace: monitoring
spec:
clusterIP: None
ports:
- name: grpc
port: 10901
Expand Down
3 changes: 2 additions & 1 deletion jsonnet/kube-thanos/kube-thanos-ruler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
],
) +
service.mixin.metadata.withNamespace(tr.namespace) +
service.mixin.metadata.withLabels(tr.labels),
service.mixin.metadata.withLabels(tr.labels) +
service.mixin.spec.withClusterIp('None'),

statefulSet:
local statefulSet = k.apps.v1.statefulSet;
Expand Down

0 comments on commit ef67c8c

Please sign in to comment.