I’ve installed Loki in my EKS Cluster using the following Helm command: helm upgrade --install loki grafana/loki-stack -n monitoring
.
Now, I’m trying to connect my Grafana, which is installed on an EC2 instance outside the cluster but within the same VPC network, and I’m getting an error.
I tried installing it using a values.yaml
file with the following configurations:
gateway:
enabled: true
ingress:
enabled: true
ingressClassName: "nginx"
annotations:
kubernetes.io/ingress.class: "nginx-external"
labels: {}
hosts:
- host: loki.develop.mydomain.com
paths:
- path: /
pathType: ImplementationSpecific
But this ingress isn’t created in my eks cluster.
I tried create my ingress manually using:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: loki-ingress
namespace: monitoring
annotations:
kubernetes.io/ingress.class: nginx-external
spec:
rules:
- host: loki2.develop.nuvia.co
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: loki
port:
number: 3100
Although the url works, my Grafana doesn’t connect either, giving the error:
“parse error at line 1, col 1: syntax error: unexpected IDENTIFIER”
Can anyone help?