
Request Kube API with curl within a pod
Today we will see how to request Kubernetes API from within a pod in the cluster. I assume you already have a kubernetes cluster deployed somewhere. On my side, I will spin a sandbox cluster on my PC with k3d. nginx deployment For the purpose of this blog post, I will create a nginx deployment in my sandbox cluster: kubectl create deploy --image=nginx nginx create a dedicated serviceAccount and RBAC Most of the time, you will get a 403 Forbidden response if you try to request the KubeAPI from within the cluster....