Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makkes/k8s-examples
Examples for interacting with a K8s cluster: operators, clients etc.
https://github.com/makkes/k8s-examples
Last synced: 3 days ago
JSON representation
Examples for interacting with a K8s cluster: operators, clients etc.
- Host: GitHub
- URL: https://github.com/makkes/k8s-examples
- Owner: makkes
- Created: 2020-01-28T22:10:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T11:13:42.000Z (almost 4 years ago)
- Last Synced: 2024-05-23T04:51:38.748Z (7 months ago)
- Language: Go
- Size: 87.9 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes programming examples
This repo is a place for collecting small snippets of Go code targeting a
specific task each, i.e. simple controllers, API clients etc.## What you'll find here
The examples are split by the library they mainly employ:
* [controller-runtime](controller-runtime/): Examples making use of
[sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime).
* [client-go](client-go/): Examples making use of
[k8s.io/client-go](https://github.com/kubernetes/client-go).## How to use the examples
All the examples in this repo depend on the `KUBECONFIG` variable pointing to a
kubeconfig file. So running them is as simple as```sh
$ KUBECONFIG="/home/dan/.kube/config" go run main.go
```## How to contribute
PRs are very welcome! Just open a PR adding a directory with your `main.go` and
any other accompanying files. ❤️