# Loki and kubernetes gateway issues

**URL:** <https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679>\
**Category:** Grafana Loki\
**Tags:** ingress, loki, kubernetes, config-help\
**Created:** [June 24, 2024, 1:46pm UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679 "2024-06-24T13:46:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aslabs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@aslabs](https://community.grafana.com/u/aslabs)\
**Post date:** [June 24, 2024, 1:46pm UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679/1 "2024-06-24T13:46:30Z")

</div>

Greetings!

I am currently trying to deploy Loki SSD on a local Kubernetes cluster following the SSD guide [[Install the simple scalable Helm chart | Grafana Loki documentation](https://grafana.com/docs/loki/latest/setup/install/helm/install-scalable/)]  
Currently having it point to minio with nfs for testing, but will use on-prem S3 for production.

My issue is from the loki-gateway pod crashing with the below error:

```auto
/docker-entrypoint.sh: No files found in /docker-entrypoint.d/, skipping configuration
2024/06/24 13:25:01 [emerg] 1#1: host not found in resolver "kube-dns.kube-system.svc.cluster.local." in /etc/nginx/nginx.conf:33
nginx: [emerg] host not found in resolver "kube-dns.kube-system.svc.cluster.local." in /etc/nginx/nginx.conf:33

```

I have searched through many previous issues and their resolutions, basically suggesting that kube-dns should be coredns, or adding the clusterdomain and dnsnamespace parameters; although my Kubernetes instance has the coredns service name as kube-dns.

Our requirements is that we need to have Loki in Kubernetes externally accessible through our companies network, as we are purely on-prem with strict policies (banking).

We already have a monolithic Loki deployment on a VM for testing, and planning to integrate this SSD Loki deployment with our existing grafana-server (VM) and be able to push logs from promtail to Loki in Kubernetes.

Please let me know if I am missing anything, any help would be highly appreciated.

Here is my values.yaml file:

```auto
loki:
  schemaConfig:
    configs:
      - from: 2024-04-01
        store: tsdb
        object_store: s3
        schema: v13
        index:
          prefix: loki_index_
          period: 24h
  ingester:
    chunk_encoding: snappy
  tracing:
    enabled: true
  querier:
    # Default is 4, if you have enough memory and CPU you can increase, reduce if OOMing
    max_concurrent: 4

gateway:
  ingress:
    enabled: true
    hosts:
      - host: loki-gateway.default.svc.cluster.local
        paths:
          - path: /
            pathType: Prefix

deploymentMode: SimpleScalable

backend:
  replicas: 3
  persistence:
    enabled: true
    storageClassName: nfs-client
read:
  replicas: 3
  persistence:
    enabled: true
    storageClassName: nfs-client
write:
  replicas: 3
  persistence:
    enabled: true
    storageClassName: nfs-client

# Enable minio for storage
minio:
  enabled: true
  persistence:
    enabled: true
    storageClassName: nfs-client

# Zero out replica counts of other deployment modes
singleBinary:
  replicas: 0

ingester:
  replicas: 0
querier:
  replicas: 0
queryFrontend:
  replicas: 0
queryScheduler:
  replicas: 0
distributor:
  replicas: 0
compactor:
  replicas: 0
indexGateway:
  replicas: 0
bloomCompactor:
  replicas: 0
bloomGateway:
  replicas: 0

```

Best Regards.

---

<div class="post-metadata">

**Author:** ![aslabs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@aslabs](https://community.grafana.com/u/aslabs)\
**Post date:** [August 7, 2024, 5:17am UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679/2 "2024-08-07T05:17:21Z")

</div>

This has been fixed by adding the below to the helm chart:

```yaml
global:
  dnsNamespace: kube-system
  clusterDomain: cluster.local
  dnsService: rke2-coredns-rke2-coredns

```

---

<div class="post-metadata">

**Author:** ![sherpapsy](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/sherpapsy/32/49692_2.png) [@sherpapsy](https://community.grafana.com/u/sherpapsy)\
**Post date:** [October 18, 2024, 2:56pm UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679/3 "2024-10-18T14:56:41Z")

</div>

I’m seeing the same error. How did you determine what to put for those values?

---

<div class="post-metadata">

**Author:** ![lindhe](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/lindhe/32/14138_2.png) [@lindhe](https://community.grafana.com/u/lindhe)\
**Post date:** [December 10, 2024, 12:18pm UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679/4 "2024-12-10T12:18:44Z")

</div>

Here’s an example of how to determine that: [loki-simple-scalable loki-gateway Nginx startup failed · Issue #7287 · grafana/loki · GitHub](https://github.com/grafana/loki/issues/7287#issuecomment-1282339134)

---

<div class="post-metadata">

**Author:** ![aiskandarov](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@aiskandarov](https://community.grafana.com/u/aiskandarov)\
**Post date:** [June 4, 2025, 8:51am UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679/5 "2025-06-04T08:51:13Z")

</div>

thanks a lot

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [June 4, 2026, 8:52am UTC](https://community.grafana.com/t/loki-and-kubernetes-gateway-issues/124679/6 "2026-06-04T08:52:07Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
