@@ -121,7 +121,7 @@ local s = t.store(commonConfig {
121121 // NOTICE: <MEMCACHED_SERVICE> is a placeholder to generate examples.
122122 // List of memcached addresses, that will get resolved with the DNS service discovery provider.
123123 // For DNS service discovery reference https://thanos.io/tip/thanos/service-discovery.md/#dns-service-discovery
124- addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s.svc.cluster.local ' % commonConfig.namespace],
124+ addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s' % commonConfig.namespace],
125125 },
126126 },
127127 indexCache: {
@@ -130,7 +130,7 @@ local s = t.store(commonConfig {
130130 // NOTICE: <MEMCACHED_SERVICE> is a placeholder to generate examples.
131131 // List of memcached addresses, that will get resolved with the DNS service discovery provider.
132132 // For DNS service discovery reference https://thanos.io/tip/thanos/service-discovery.md/#dns-service-discovery
133- addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s.svc.cluster.local ' % commonConfig.namespace],
133+ addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s' % commonConfig.namespace],
134134 },
135135 },
136136});
@@ -152,12 +152,12 @@ local q = t.query(commonConfig {
152152});
153153
154154local finalRu = t.rule(ru.config {
155- queriers: ['dnssrv+_http._tcp.%s.%s.svc.cluster.local ' % [q.service.metadata.name, q.service.metadata.namespace]],
155+ queriers: ['dnssrv+_http._tcp.%s.%s' % [q.service.metadata.name, q.service.metadata.namespace]],
156156});
157157
158158local qf = t.queryFrontend(commonConfig {
159159 replicas: 1 ,
160- downstreamURL: 'http://%s.%s.svc.cluster.local. :%d' % [
160+ downstreamURL: 'http://%s.%s:%d' % [
161161 q.service.metadata.name,
162162 q.service.metadata.namespace,
163163 q.service.spec.ports[1 ].port,
@@ -172,7 +172,7 @@ local qf = t.queryFrontend(commonConfig {
172172 // NOTICE: <MEMCACHED_SERVICE> is a placeholder to generate examples.
173173 // List of memcached addresses, that will get resolved with the DNS service discovery provider.
174174 // For DNS service discovery reference https://thanos.io/tip/thanos/service-discovery.md/#dns-service-discovery
175- addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s.svc.cluster.local ' % commonConfig.namespace],
175+ addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s' % commonConfig.namespace],
176176 },
177177 },
178178 labelsCache: {
@@ -181,7 +181,7 @@ local qf = t.queryFrontend(commonConfig {
181181 // NOTICE: <MEMCACHED_SERVICE> is a placeholder to generate examples.
182182 // List of memcached addresses, that will get resolved with the DNS service discovery provider.
183183 // For DNS service discovery reference https://thanos.io/tip/thanos/service-discovery.md/#dns-service-discovery
184- addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s.svc.cluster.local ' % commonConfig.namespace],
184+ addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s' % commonConfig.namespace],
185185 },
186186 },
187187});
@@ -213,7 +213,7 @@ local strs = t.storeShards(commonConfig {
213213 // NOTICE: <MEMCACHED_SERVICE> is a placeholder to generate examples.
214214 // List of memcached addresses, that will get resolved with the DNS service discovery provider.
215215 // For DNS service discovery reference https://thanos.io/tip/thanos/service-discovery.md/#dns-service-discovery
216- addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s.svc.cluster.local ' % commonConfig.namespace],
216+ addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s' % commonConfig.namespace],
217217 },
218218 },
219219 indexCache: {
@@ -222,14 +222,14 @@ local strs = t.storeShards(commonConfig {
222222 // NOTICE: <MEMCACHED_SERVICE> is a placeholder to generate examples.
223223 // List of memcached addresses, that will get resolved with the DNS service discovery provider.
224224 // For DNS service discovery reference https://thanos.io/tip/thanos/service-discovery.md/#dns-service-discovery
225- addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s.svc.cluster.local ' % commonConfig.namespace],
225+ addresses: ['dnssrv+_client._tcp.<MEMCACHED_SERVICE>.%s' % commonConfig.namespace],
226226 },
227227 },
228228});
229229
230230local finalQ = t.query(q.config {
231231 stores: [
232- 'dnssrv+_grpc._tcp.%s.%s.svc.cluster.local ' % [service.metadata.name, service.metadata.namespace]
232+ 'dnssrv+_grpc._tcp.%s.%s' % [service.metadata.name, service.metadata.namespace]
233233 for service in [re.service, ru.service, sc.service, s.service] +
234234 [rcvs.hashrings[hashring].service for hashring in std.objectFields (rcvs.hashrings)] +
235235 [strs.shards[shard].service for shard in std.objectFields (strs.shards)]
0 commit comments