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]
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:
/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:
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.