Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipeagger/go-k8s-client
Golang managing resources in kubernetes
https://github.com/felipeagger/go-k8s-client
Last synced: about 1 month ago
JSON representation
Golang managing resources in kubernetes
- Host: GitHub
- URL: https://github.com/felipeagger/go-k8s-client
- Owner: felipeagger
- License: mit
- Created: 2021-03-20T13:06:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-29T22:11:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-02T09:29:01.570Z (about 2 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-k8s-client
Golang managing resources in kubernetesList Nodes, Pods.. Create & Delete Pods, Jobs...
# Requirements
Add k8s config file in root directory as "kube_config.yml":
```
apiVersion: v1
kind: Config
clusters:
- cluster:
api-version: v1
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0t...tLS0K
server: "https://192.168.100.50:6443"
name: "local"
contexts:
- context:
cluster: "local"
user: "kube-admin-local"
name: "local"
current-context: "local"
users:
- name: "kube-admin-local"
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQlNREV3TWpReE5ERXpNV....UtLS0tLQo=
client-key-data: LS0tLS1CRUdJTiBSU0EgUFJJ......==
```# Running:
```
go run main.go
```