https://github.com/framsouza/list-gke-resources
It will list resources from every GKE cluster running on a specific project
https://github.com/framsouza/list-gke-resources
Last synced: 2 months ago
JSON representation
It will list resources from every GKE cluster running on a specific project
- Host: GitHub
- URL: https://github.com/framsouza/list-gke-resources
- Owner: framsouza
- Created: 2022-09-06T18:08:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-15T11:40:56.000Z (almost 4 years ago)
- Last Synced: 2025-01-25T06:13:07.656Z (over 1 year ago)
- Language: Go
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Listing gke resources
This is a simple code that will list the Kubernetes resources using client-go.
The resources available at the moment is, `pods`, `deployments`, `nodes`, `statefulsets`, `policysecurity` and `version`.
### Usage
You must specify the project and resource you want to check by adding the `-project` and `-resource` parameters, like this:
```
go run main.go -project=myproject -resource=pods
```
You will get an output similar to this:
```
GKE NAME RESOURCE NAME NAMESPACE
migration-test event-exporter-gke kube-system
migration-test konnectivity-agent kube-system
migration-test konnectivity-agent-autoscaler kube-system
migration-test kube-dns kube-system
migration-test kube-dns-autoscaler kube-system
migration-test l7-default-backend kube-system
migration-test metrics-server-v0.4.5 kube-system
GKE NAME RESOURCE NAME NAMESPACE
migration-test-twenty-two-version event-exporter-gke kube-system
migration-test-twenty-two-version konnectivity-agent kube-system
migration-test-twenty-two-version konnectivity-agent-autoscaler kube-system
migration-test-twenty-two-version kube-dns kube-system
migration-test-twenty-two-version kube-dns-autoscaler kube-system
migration-test-twenty-two-version l7-default-backend kube-system
migration-test-twenty-two-version metrics-server-v0.4.5 kube-system
migration-test-twenty-two-version event-exporter-gke kube-system
migration-test-twenty-two-version konnectivity-agent kube-system
migration-test-twenty-two-version konnectivity-agent-autoscaler kube-system
migration-test-twenty-two-version kube-dns kube-system
migration-test-twenty-two-version kube-dns-autoscaler kube-system
migration-test-twenty-two-version l7-default-backend kube-system
migration-test-twenty-two-version metrics-server-v0.4.5 kube-system
```