https://github.com/supercaracal/kubernetes-controller-template
It's just a example as a template. I'd like to have free rein over where I implement it. I'd say that the restriction of GOPATH is a pain in the neck. :whale:
https://github.com/supercaracal/kubernetes-controller-template
example golang kubernetes
Last synced: 3 months ago
JSON representation
It's just a example as a template. I'd like to have free rein over where I implement it. I'd say that the restriction of GOPATH is a pain in the neck. :whale:
- Host: GitHub
- URL: https://github.com/supercaracal/kubernetes-controller-template
- Owner: supercaracal
- License: mit
- Created: 2021-09-19T10:34:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-26T03:39:59.000Z (over 4 years ago)
- Last Synced: 2024-12-28T13:48:34.000Z (about 1 year ago)
- Topics: example, golang, kubernetes
- Language: Go
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


Kubernetes Controller Template
===============================================================================
This controller has a feature to create a pod to log a message declared by manifest.
The pod will be deleted automatically by the controller later.
## Running controller on local host
```
$ kind create cluster
$ make apply-manifests
$ make build
$ make run
```
## Running controller in Docker
```
$ kind create cluster
$ make apply-manifests
$ make build-image
$ make port-forward &
$ make push-image
```
## See also
* [sample-controller](https://github.com/kubernetes/sample-controller)
* [kubebuilder](https://github.com/kubernetes-sigs/kubebuilder)
* [operator-sdk](https://github.com/operator-framework/operator-sdk)
* [kind](https://github.com/kubernetes-sigs/kind)
* [Kubernetes Reference](https://kubernetes.io/docs/reference/)
## TODO
You can edit the following files as needed.
```
$ grep -riIl --exclude-dir=generated --exclude-dir=.git --exclude=zz_generated.deepcopy.go 'supercaracal\|foobar\|kubernetes-controller-template' .
./README.md
./go.mod
./.github/workflows/release.yaml
./internal/controller/custom.go
./internal/worker/reconciler.go
./Makefile
./.dockerignore
./.gitignore
./config/controller.yaml
./config/registry.yaml
./config/crd.yaml
./config/example-foobar.yaml
./main.go
./pkg/apis/supercaracal/register.go
./pkg/apis/supercaracal/v1/doc.go
./pkg/apis/supercaracal/v1/register.go
./pkg/apis/supercaracal/v1/types.go
./Dockerfile
```