An open API service indexing awesome lists of open source software.

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.

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.