Skip to content

Commit

Permalink
Loki: Make DNS resolver configurable in Gateway (#5973)
Browse files Browse the repository at this point in the history
* fix(gateway): make DNS resolver configurable

Signed-off-by: Ivan Rizzante <i.rizzante@gmail.com>

* fix: lint
  • Loading branch information
irizzant authored Apr 21, 2022
1 parent ef56b73 commit c700744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions production/ksonnet/loki/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
dynamodb_secret_access_key: '',
dynamodb_region: error 'must specify dynamodb_region',

// DNS Resolver
dns_resolver: 'kube-dns.kube-system.svc.cluster.local',

client_configs: {
dynamo: {
dynamodb: {} + if $._config.dynamodb_access_key != '' then {
Expand Down
2 changes: 1 addition & 1 deletion production/ksonnet/loki/gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ local k = import 'ksonnet-util/kausal.libsonnet';
access_log /dev/stderr main;
sendfile on;
tcp_nopush on;
resolver kube-dns.kube-system.svc.cluster.local;
resolver $(dns_resolver)s;
server {
listen 80;
Expand Down

0 comments on commit c700744

Please sign in to comment.