-
Notifications
You must be signed in to change notification settings - Fork 0
GKE Workloads
Module flag: gke_workloads
Enabled by default: yes
The GKE Workloads module provides Kubernetes workload-level visibility: Deployments, StatefulSets, DaemonSets, CronJobs, Jobs, Services, Ingresses (including Gateway API HTTPRoutes), and NetworkPolicies. All tools are read-only.
For cluster-level management (node pools, bottlenecks, node pool resize), see GKE.
GCP_PROJECT_ID=my-project ./aura-tracker-gcp --modules gke_workloadsgcloud services enable container.googleapis.com| Role | Tools that need it |
|---|---|
roles/container.viewer |
All tools in this module |
Lists all workloads (Deployments, StatefulSets, DaemonSets, CronJobs, Jobs) across namespaces in a cluster.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
location |
yes | Region or zone |
cluster_name |
yes | Cluster name |
namespace |
no | Filter to a specific namespace |
Returns: Workload name, kind, namespace, replicas (desired/ready/available), container images, service account, secret references.
Gets full specification for a single workload.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
location |
yes | Region or zone |
cluster_name |
yes | Cluster name |
namespace |
yes | Kubernetes namespace |
workload_kind |
yes |
Deployment, StatefulSet, DaemonSet, CronJob, or Job
|
workload_name |
yes | Workload name |
Returns: Container specs (image, env vars, resource requests/limits), node selector, tolerations, affinity, service account, volume mounts.
Lists Kubernetes Services across namespaces.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
location |
yes | Region or zone |
cluster_name |
yes | Cluster name |
namespace |
no | Filter to a specific namespace |
Returns: Service name, namespace, type (ClusterIP/NodePort/LoadBalancer), selector, ports, NEG annotations.
Lists Ingress resources and Gateway API HTTPRoutes.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
location |
yes | Region or zone |
cluster_name |
yes | Cluster name |
namespace |
no | Filter to a specific namespace |
Returns: Ingress name, namespace, hosts, TLS configuration, routing rules, load balancer IP.
Lists NetworkPolicy resources controlling pod-to-pod traffic.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
location |
yes | Region or zone |
cluster_name |
yes | Cluster name |
namespace |
no | Filter to a specific namespace |
Returns: Policy name, namespace, pod selector, ingress rules (from pods/namespaces/IP blocks), egress rules.
Workload inventory
"List all Deployments in the
prod-clustercluster inus-central1for project my-project."
Image audit
"Which workloads in
prod-clusterare running images with the taglatestinstead of a pinned digest?"
Resource limits check
"Which Deployments in namespace
backendofprod-clusterdo not have CPU and memory limits set?"
Service account audit
"List all workloads in
prod-clusterthat use the default service account instead of a dedicated one."
Network policy gap
"Which namespaces in
prod-clusterhave no NetworkPolicy defined (all traffic allowed by default)?"
| Module flag | Why you'd combine it |
|---|---|
gke |
Cluster-level details, node pools, bottleneck analysis |
gke_mesh |
Service-to-service traffic topology via Istio/ASM |
networking |
NEGs and load balancers fronting GKE Services |
iam |
Service account bindings for workload identity |