Inside the Kubernetes pod
Last updated
Last updated
I tried "./kubectl get pods" then a forbidden error which means the service account running this pod does not have enough permissions.
So next I checked my permissions
Some interesting Kubernetes objects to look for would be nodes, deployments, services, ingress, jobs... But the service account I control does not have access to any of them.
However, by default Kubernetes creates environment variables containing the host and port of the other services running in the cluster.
Running env you will see there is a Grafana service running in the cluster.
curled the grafana service only found the login page. so i curled the login page to see what else I would find