-
Notifications
You must be signed in to change notification settings - Fork 149
Could not connect to AWS EKS cluster #55
Comments
managed to solve it? |
Still not. |
👍 Is there a change that you can implement ServiceAccount authentication for this plugin? In this way we will be able to deploy this plugin on EKS. |
That would be nice. Right now as a workarround i have a second grafana+prometheus stack inside the EKS cluster. |
@tonimontero We also have everything running inside the EKS cluster(prometheus as a deployment and grafana too) |
What you have said, is exactly what we are doing... Isn't working for you? Maybe this links could help you: https://sysdig.com/blog/kubernetes-monitoring-prometheus-operator-part3/ |
@tonimontero are you creating your own dashboards or are you using the Grafana K8s plugin to do so? Another thing I thought it was to create my own dashboards based on the ones that this plugin creates. Thanks for your help! |
If we deployed prometheus operator with kube-state-metrics and node-exporter, can't we just use the dashboards with the existing Prometheus data source? What is the point in configuring a cluster and a new data source, since no new deployments are required? EKS authenticates with STS tokens based on AWS credentials (aws-iam-authenticator) - can support for this be added in the future? |
I also cannot use kubernetes plugin because there is no client certificate and key of EKS cluster |
Hi, has anyone managed to get the Kubernetes-app working with EKS? Can't find any clear references anywhere. |
@txynidakis I have got it working, but I would not bother with this app if I had to do it again. Half of the metric names are now wrong and making it work with EKS involves removing all the Kubernetes datasources anyway. You're probably better off just installing Prometheus/node-exporter/api-state-metrics yourself and using a dashboard from https://grafana.com/grafana/dashboards |
@aarongorka I suggest you go with https://github.com/kubernetes-monitoring/kubernetes-mixin. Also have a look at https://github.com/helm/charts/tree/master/stable/prometheus-operator which comes with everything working right out of the box |
Thanks @aarongorka & @DimitrijeManic We've managed to get Prometheus-Operator going, we just wanted to see if the plug-in was worthwhile or worth the effort. |
As a workaround you can add sidecar container into grafana deployment with kubectl preinstalled and command |
Hi @CrusaderX, could you give some info on this? What permissions would be required? and what do you mean with sidecar container? |
@JeroenAP Something like this: spec:
serviceAccountName: myServiceAccountName
containers:
- name: kubectl
image: bitnami/kubectl
command:
- kubectl
- proxy
- name: grafana:latest
... where apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: default-rbac
subjects:
- kind: ServiceAccount
name: myServiceAccountName
namespace: myNamespace
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io In grafana Kubernetes-app plugin settings URL will be |
@CrusaderX I was trying the same, just the I still receive 403, (if I do did you get it working with EKS somehow? |
Nevermind, I got it working. seems like I had to give a cluster-admin role. or maybe some type of role, which will allow you to get/list/view pretty much everything. |
Hello, following the setup instructions, i'm not being able to connect our grafana to the AWS EKS cluster. the following message is given:
Tried to deploy cluster node exporters manually with given json, but still not able to connect grafana with eks. There are some rbac files that i should also deploy?
Thanks in advance.
The text was updated successfully, but these errors were encountered: