Skip to content

Commit

Permalink
GITBOOK-649: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop authored and gitbook-bot committed Jul 25, 2024
1 parent cbfb0c9 commit 9e6bf92
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pentesting-cloud/kubernetes-security/kubernetes-enumeration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ _**Hot pods are**_ pods containing a privileged service account token. A privile

If you don't know what is **RBAC**, **read this section**.

## GUI Applications

* **k9s**: A GUI that enumerates a kubernetes cluster from the terminal. Check the commands in[https://k9scli.io/topics/commands/](https://k9scli.io/topics/commands/). Write `:namespace` and select all to then search resources in all the namespaces.
* **k8slens**: It offers some free trial days: [https://k8slens.dev/](https://k8slens.dev/)

## Enumeration CheatSheet

In order to enumerate a K8s environment you need a couple of this:
Expand Down Expand Up @@ -467,6 +472,16 @@ k get all
{% endtab %}
{% endtabs %}

### **Get all resources managed by helm**

{% tabs %}
{% tab title="kubectl" %}
```bash
k get all --all-namespaces -l='app.kubernetes.io/managed-by=Helm'
```
{% endtab %}
{% endtabs %}

### **Get Pods consumptions**

{% tabs %}
Expand Down

0 comments on commit 9e6bf92

Please sign in to comment.