From 35dfca16f8f5cfbf725d9adf1dd0e90dd9a446c9 Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Wed, 24 Feb 2021 09:38:34 -0800 Subject: [PATCH 1/3] Add docs for accessing dashboard through private load balancer --- docs/workloads/realtime/metrics.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/workloads/realtime/metrics.md b/docs/workloads/realtime/metrics.md index 5848038352..b4703b523c 100644 --- a/docs/workloads/realtime/metrics.md +++ b/docs/workloads/realtime/metrics.md @@ -46,6 +46,12 @@ URL: cortex env list ``` +If your operator load balancer is configured to be internal, there are a few options for accessing the dashboard: + +1. Access the dashboard from a machine that has VPC Peering configured to your cluster's VPC, or which is inside of your cluster's VPC +1. Run `kubectl port-forward -n default grafana-0 3000:3000` to forward Grafana's port to your local machine, and access the dashboard on [http://localhost:3000/](http://localhost:3000/) (see instructions for setting up `kubectl` on [AWS](../../clusters/aws/kubectl.md) or [GCP](../../clusters/gcp/kubectl.md)) +1. Set up VPN access to your cluster's VPC ([docs](https://docs.aws.amazon.com/vpc/latest/userguide/vpn-connections.html)) + ### Default credentials The dashboard is protected with username / password authentication, which by default are: From 084b0bec4994a05dafc008ce4a411f298949205d Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Thu, 25 Feb 2021 10:36:34 -0800 Subject: [PATCH 2/3] Update find_missing_docs_links.py --- dev/find_missing_docs_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/find_missing_docs_links.py b/dev/find_missing_docs_links.py index 156b0e9ace..ea9c6c9d75 100644 --- a/dev/find_missing_docs_links.py +++ b/dev/find_missing_docs_links.py @@ -175,7 +175,7 @@ def err_str(src_file, line_num, original_link_text, reason): def is_external_link(link): - return link.startswith("http://") or link.startswith("https://") + return (link.startswith("http://") or link.startswith("https://")) and not "localhost:" in link if __name__ == "__main__": From dde3e35057c2ab5811cc61d36be3fe4edf0bed9d Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Thu, 25 Feb 2021 11:35:58 -0800 Subject: [PATCH 3/3] Update find_missing_docs_links.py --- dev/find_missing_docs_links.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/find_missing_docs_links.py b/dev/find_missing_docs_links.py index ea9c6c9d75..9e98e3bc1a 100644 --- a/dev/find_missing_docs_links.py +++ b/dev/find_missing_docs_links.py @@ -118,6 +118,8 @@ async def check_all_http_links(http_link_infos, errors): src_file, line_num, link, _, _ = link_info if link in links: continue + if "://localhost:" in link: + continue links.add(link) tasks.append( asyncio.ensure_future(check_http_link(session, src_file, line_num, link, errors)) @@ -175,7 +177,7 @@ def err_str(src_file, line_num, original_link_text, reason): def is_external_link(link): - return (link.startswith("http://") or link.startswith("https://")) and not "localhost:" in link + return link.startswith("http://") or link.startswith("https://") if __name__ == "__main__":