carlosedp / cluster-monitoring

Cluster monitoring stack for clusters based on Prometheus Operator
MIT License
740 stars 200 forks source link

Unable to access dashboards #44

Closed werne2j closed 4 years ago

werne2j commented 4 years ago

I attempted to deploy to my rasperry pi cluster running k3s and i am unable to reach the dashboards. I was thinking maybe something with my k3s setup was wrong so i attempted to re-deploy k3s but am still seeing the same issue.


{
  ...
  modules: [
    {
      // After deployment, run the create_gmail_auth.sh script from scripts dir.
      name: 'smtpRelay',
      enabled: false,
      file: import 'smtp_relay.jsonnet',
    },
    {
      name: 'armExporter',
      enabled: true,
      file: import 'arm_exporter.jsonnet',
    },
    {
      name: 'upsExporter',
      enabled: false,
      file: import 'ups_exporter.jsonnet',
    },
    {
      name: 'metallbExporter',
      enabled: false,
      file: import 'metallb.jsonnet',
    },
    {
      name: 'traefikExporter',
      enabled: true,
      file: import 'traefik.jsonnet',
    },
    {
      name: 'elasticExporter',
      enabled: false,
      file: import 'elasticsearch_exporter.jsonnet',
    },
  ],

  k3s: {
    enabled: true,
    master_ip: ['<my-ip>'],
  },

  // Domain suffix for the ingresses
  suffixDomain: '<my-ip>.nip.io',
  // If TLSingress is true, a self-signed HTTPS ingress with redirect will be created
  TLSingress: true,
  ...
} 
barrygear commented 4 years ago

I just tried this today on my k3s cluster. I had to run make deploy twice for it to successfully install. I did not use 'my-ip'.nip.io but 'my-clustername'.lan. Afterwards I noticed the installation created an ingress called grafana.'my-clustername'.lan. I was able to login and view the dashboards. (I set DNS in my lan manually)

sosimon commented 4 years ago

I had issues here too, but ran some digs and turns out the DNS on my machine wasn't resolving <my-ip>.nip.io properly. I explicitly set my DNS to 8.8.8.8 (Google's) and it works fine. YMMV

carlosedp commented 4 years ago

Check in order your DNS, your K3s load-balancer and the K3s Ingress (Traefik). Once Grafana is up, you should be able to access if the infrastructure is working.

werne2j commented 4 years ago

I had issues here too, but ran some digs and turns out the DNS on my machine wasn't resolving <my-ip>.nip.io properly. I explicitly set my DNS to 8.8.8.8 (Google's) and it works fine. YMMV

This worked for me as well. Thanks for the help