ndelitski / rancher-alarms

Will kick your ass if found unhealthy service in Rancher environment
85 stars 20 forks source link

Detected RANCHER_ADDRESS has trailing /v2-beta #36

Open flaccid opened 7 years ago

flaccid commented 7 years ago

In some cases (not sure) why when using https://github.com/ndelitski/rancher-alarms#inside-rancher-environment-using-rancher-compose-cli the effective rancher address detected is has `/v2-beta' trailing.

That is it tries to connect using: "url": "https://rancher.blah.io/v2-beta/v1/projects/1a29/environments" instead of: "url": "https://rancher.blah.io/v1/projects/1a29/environments"

Workaround is to set env varRANCHER_ADDRESS to the right base address.