/floppybird-operator-demo

A demo app to show how operators work. Allows to start and expose different flavors of floppybird in k8s

Primary LanguageJavaScriptApache License 2.0Apache-2.0

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

docker login
make docker-buildx IMG=crowdsalat/floppybird-operator PLATFORMS=linux/amd64
make deploy IMG=crowdsalat/floppybird-operator

k apply -f config/samples/webapp_v1alpha1_floppybird.yaml 

k delete -f config/samples/webapp_v1alpha1_floppybird.yaml
make undeploy

local test

# 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

# 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