From 6ad2e97e2e477a0aebb17f519920d2f8ea10ebd3 Mon Sep 17 00:00:00 2001 From: wholteza Date: Mon, 20 Oct 2025 12:16:46 +0200 Subject: [PATCH] Kubernetes tips --- src/notes/9-kubernetes-tips/note.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/notes/9-kubernetes-tips/note.md diff --git a/src/notes/9-kubernetes-tips/note.md b/src/notes/9-kubernetes-tips/note.md new file mode 100644 index 0000000..aaffde0 --- /dev/null +++ b/src/notes/9-kubernetes-tips/note.md @@ -0,0 +1,18 @@ +# Kubernetes tricks + +A collection of nice to haves while managing applications in kubernetes. + +## Kubectl proxy + +Running `kubectl proxy` will open a tunnel to the selected cluster. You can then access the webapi on the port that was displayed. + +Using that webapi you can browse the resources and even access the application hosted within your cluster. + +### Explore a namespace +Enter the following address and replace the namespace name and the resource type (pods|services) to get a list of the available resources. +`http://localhost:8001/api/v1/namespaces//` + +### Make a request to a service or pod +The url pattern looks like this: `http://localhost:8001/api/v1/namespaces///::/proxy/` +Example: `http://localhost:8001/api/v1/namespaces/hangfire-services/services/http:hangfire-services:80/proxy/hangfire` will make a request to my hangfire dashboard. +