https://github.com/pytimer/k8sutil
The repository provides some toolkits package to make it easier to call client-go to operate Kubernetes cluster.
https://github.com/pytimer/k8sutil
Last synced: 5 months ago
JSON representation
The repository provides some toolkits package to make it easier to call client-go to operate Kubernetes cluster.
- Host: GitHub
- URL: https://github.com/pytimer/k8sutil
- Owner: pytimer
- License: apache-2.0
- Created: 2021-01-06T03:44:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T09:09:37.000Z (over 3 years ago)
- Last Synced: 2024-06-18T18:53:33.550Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 316 KB
- Stars: 18
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history/history.go
- License: LICENSE
Awesome Lists containing this project
README
# k8sutil
[](https://pkg.go.dev/github.com/pytimer/k8sutil)
The repository provides some toolkits package to make it easier to call [client-go](https://github.com/kubernetes/client-go) to operate Kubernetes cluster.
## Features
- [x] Apply resources.
- [x] View workload resource revision history.
- [x] Create the container putty console shell when use http(s).
- [x] Pod util.
- [x] Node util.
## Usage
### Apply
This package support apply multiple resources to the Kubernetes cluster. It's like `kubectl apply`, support `server-side` and `non server-side`.
The example code in [apply](./examples/apply).
### History view
This package support view the workload resource revision history. It's like `kubectl rollout history`.
Now only support `Deployment`.
The example code in [history](./examples/history).
### Exec in http
This package support create the container putty console shell when use http.
The example code in [exec](./examples/exec).