File tree 4 files changed +14
-1
lines changed
4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 61
61
- --grpc-client-server-name=prometheus-grpc
62
62
- --rule=dnssrv+_grpc._tcp.prometheus-operated.openshift-monitoring.svc.cluster.local
63
63
- --target=dnssrv+_grpc._tcp.prometheus-operated.openshift-monitoring.svc.cluster.local
64
+ - --query.sd-dns-resolver=miekgdns
64
65
env :
65
66
- name : HOST_IP_ADDRESS
66
67
valueFrom :
Original file line number Diff line number Diff line change 20
20
key : alertmanagers.yaml
21
21
name : thanos-ruler-alertmanagers-config
22
22
containers :
23
- - name : thanos-ruler
23
+ - args :
24
+ - --query.sd-dns-resolver=miekgdns
25
+ name : thanos-ruler
24
26
securityContext :
25
27
allowPrivilegeEscalation : false
26
28
capabilities :
Original file line number Diff line number Diff line change @@ -356,6 +356,10 @@ function(params)
356
356
'--grpc-client-server-name=prometheus-grpc' ,
357
357
'--rule=dnssrv+_grpc._tcp.prometheus-operated.openshift-monitoring.svc.cluster.local' ,
358
358
'--target=dnssrv+_grpc._tcp.prometheus-operated.openshift-monitoring.svc.cluster.local' ,
359
+ // The native Go resolver fails to parse compressed responses for SRV records.
360
+ // The miekgdns resolver doesn't suffer the same issue hence defaulting to it instead.
361
+ // See https://bugzilla.redhat.com/show_bug.cgi?id=1953518
362
+ '--query.sd-dns-resolver=miekgdns' ,
359
363
],
360
364
resources: {
361
365
requests: {
Original file line number Diff line number Diff line change @@ -385,6 +385,12 @@ function(params)
385
385
// Note: this is performing strategic-merge-patch for thanos-ruler container.
386
386
// Remainder of the container configuration is managed by prometheus-operator based on $.thanosRuler.spec
387
387
name: tr.config.name,
388
+ args: [
389
+ // The native Go resolver fails to parse compressed responses for SRV records.
390
+ // The miekgdns resolver doesn't suffer the same issue hence defaulting to it instead.
391
+ // See https://bugzilla.redhat.com/show_bug.cgi?id=1953518
392
+ '--query.sd-dns-resolver=miekgdns' ,
393
+ ],
388
394
terminationMessagePolicy: 'FallbackToLogsOnError' ,
389
395
volumeMounts: [
390
396
{
You can’t perform that action at this time.
0 commit comments