https://github.com/viadee/floppybird-operator-demo
A demo app to show how operators work. Allows to start and expose different flavors of floppybird in k8s
https://github.com/viadee/floppybird-operator-demo
demo-app floppybird kubebuilder kubernetes
Last synced: 3 months ago
JSON representation
A demo app to show how operators work. Allows to start and expose different flavors of floppybird in k8s
- Host: GitHub
- URL: https://github.com/viadee/floppybird-operator-demo
- Owner: viadee
- License: apache-2.0
- Created: 2023-06-19T06:11:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-22T06:50:46.000Z (about 2 years ago)
- Last Synced: 2025-01-21T07:11:54.905Z (5 months ago)
- Topics: demo-app, floppybird, kubebuilder, kubernetes
- Language: JavaScript
- Homepage:
- Size: 521 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# floppybird-operator
## prerequisite
- go version v1.19.0+
- docker version 17.03+.
- kubectl version v1.11.3+.
- Access to a Kubernetes v1.11.3+ cluster.
- k3d (or any other local k8s cluster solution)## create controller image
```shell
docker login
make docker-buildx IMG=crowdsalat/floppybird-operator PLATFORMS=linux/amd64
make deploy IMG=crowdsalat/floppybird-operatork apply -f config/samples/webapp_v1alpha1_floppybird.yaml
k delete -f config/samples/webapp_v1alpha1_floppybird.yaml
make undeploy
```## local test
```shell
# create local cluster
k3d cluster create local-cluster
kubectl config use-context k3d-local-cluster# install CRD
make install## launch from vscode "Run and Debug"
```## project initialization
```shell
# create project
kubebuilder init --domain demo.viadee.de --repo github.com/viadee/floppybird-operator-demo
# create api (Create Resource [y/n] y; Create Controller [y/n] y)
kubebuilder create api --group webapp --version v1alpha1 --kind Floppybird
```