make fresh
- Port forward to postgres:
kubectl -n default port-forward `kubectl get pods -n default -l "app=postgres" -o jsonpath="{.items[0].metadata.name}"` 5433:5432
- Dashboard port forward:
kubectl -n default port-forward `kubectl get pods -n default -l "app.kubernetes.io/name=kubernetes-dashboard,app.kubernetes.io/instance=kubernetes-dashboard" -o jsonpath="{.items[0].metadata.name}"` 8443:8443
- Dashboard creds:
make dashboardCreds
forhttps://127.0.0.1:8443/#/login
- Connect locally to k8s postgres:
psql -p 5433 -h 127.0.0.1
How can I set this block after the fact for metrics server:
containers:
- name: metrics-server
image: k8s.gcr.io/metrics-server/metrics-server:v0.5.0
args:
- '--kubelet-insecure-tls'
- '--cert-dir=/tmp'