Currently somehow Grafana doesn't deliver the same result as a direct Thanos Query, so first we need to connect to the prometheus-thanos-query pod:
k port-forward svc/prometheus-thanos-query 10902:10902| [Unit] | |
| Wants=network-pre.target | |
| Before=network-pre.target shutdown.target | |
| [Service] | |
| User=root | |
| ExecStart=/bin/sh -ec '\ | |
| [ -x /usr/bin/wslinfo ] && [ "$(/usr/bin/wslinfo --networking-mode)" = "mirrored" ] || exit 0;\ | |
| echo "\ | |
| add chain ip nat WSLPREROUTING { type nat hook prerouting priority dstnat - 1; policy accept; };\ |
| # List all deleted pods | |
| kubectl get pods -o json | jq -r '.items[] | select(.metadata.deletionTimestamp != null)' |
This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:
| log-queries | |
| log-facility=/var/log/dnsmasq.log | |
| no-resolv | |
| server=8.8.4.4 | |
| server=8.8.8.8 | |
| address=/router/10.1.1.1 | |
| address=/server/10.1.1.2 |
Tools
Presentations
| # This config will serve up: http://<haproxy>/foo/index.html | |
| # | |
| # This post was indispensable | |
| # https://stackoverflow.com/questions/39964607/haproxy-forward-request-to-s3-hosted-site | |
| global | |
| #debug # Uncomment this line to debug and then comment out daemon | |
| daemon | |
| maxconn 256 |
| export interface Environment { | |
| DEBUG : boolean; | |
| API_URL : string; | |
| WS_URL : string; | |
| BASE_URL : string; | |
| } |