Skip to content

Commit

Permalink
Adapt receive local endpoint to gRPC based endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
  • Loading branch information
brancz committed Feb 13, 2020
1 parent 923a5ab commit 01ef164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/all/manifests/thanos-receive-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- --tsdb.path=/var/thanos/receive
- --label=replica="$(NAME)"
- --label=receive="true"
- --receive.local-endpoint=http://$(NAME).thanos-receive.$(NAMESPACE).svc.cluster.local:19291/api/v1/receive
- --receive.local-endpoint=$(NAME).thanos-receive.$(NAMESPACE).svc.cluster.local:10901
env:
- name: NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
local containerVolumeMount = container.volumeMountsType;

local replicationFactor = tr.config.replicationFactor;
local localEndpointFlag = '--receive.local-endpoint=http://$(NAME).%s.$(NAMESPACE).svc.cluster.local:%d/api/v1/receive' % [tr.config.name, tr.service.spec.ports[2].port];
local localEndpointFlag = '--receive.local-endpoint=$(NAME).%s.$(NAMESPACE).svc.cluster.local:%d' % [tr.config.name, tr.service.spec.ports[0].port];

local c =
container.new('thanos-receive', tr.config.image) +
Expand Down

0 comments on commit 01ef164

Please sign in to comment.