> For the complete documentation index, see [llms.txt](https://oklencodes.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oklencodes.gitbook.io/untitled/offensive-security/insekube/inside-the-kubernetes-pod.md).

# Inside the Kubernetes pod

I tried "./kubectl get pods" then a forbidden error which means the service account running this pod does not have enough permissions.

![](/files/WjLmz2auD1nk3rkwFZpr)

So next I checked my permissions

![](/files/JEvVtUgSU6j8NFotHlhR)

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

![](/files/rEAmd2xsXXjyVDjn4Ep5)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oklencodes.gitbook.io/untitled/offensive-security/insekube/inside-the-kubernetes-pod.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
