https://github.com/cloudoutloud/k8s-go
A collection of scripts for kubernetes using the go client.
https://github.com/cloudoutloud/k8s-go
go kubernetes
Last synced: about 2 months ago
JSON representation
A collection of scripts for kubernetes using the go client.
- Host: GitHub
- URL: https://github.com/cloudoutloud/k8s-go
- Owner: cloudoutloud
- Created: 2024-11-04T07:28:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-15T06:24:44.000Z (about 1 year ago)
- Last Synced: 2025-06-15T06:28:52.220Z (about 1 year ago)
- Topics: go, kubernetes
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k8s-go
A collection of ad hoc scripts for kubernetes using the go client.
CD in each directory folder under `/scrips` and run `go run main.go`
All scripts will authenticate with to cluster with local kube config.
- replicas
List deployments with less than 2 replicas for quick high availability check.
- resources
List all pods and jobs that not have any CPU/MEM request and limits set.
- vpa-deployment
Iterate over deployments in cluster and create a Virtual pod autoscaling resource (VPA) in update mode off.
- vpa-ds
Iterate over daemonsets in cluster and create a Virtual pod autoscaling resource (VPA) in update mode off.
- vpa-sts
Iterate over daemonsets in cluster and create a Virtual pod autoscaling resource (VPA) in update mode off.
- secret-migrtaion
Copy secrets with certain prefix across same namespace in two different cluster.