the-redback / kubebuilder-demo

Basic getting started of kubebuilder SDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubebuilder-demo

Basic getting started of kubebuilder SDK.

  1. To generate code,
$ make
  1. To install the CRD,
$ make install
  1. To run controller in Local,
$ make run

Without webhooks,

$ make run ENABLE_WEBHOOKS=false

Deploy Controller in cluster,

$ make docker-build docker-push IMG=<some-registry>/<project-name>:tag
$ make deploy IMG=<some-registry>/<project-name>:tag
  1. To install sample Crontab custom resource,
$ kubectl apply -f config/samples/

About

Basic getting started of kubebuilder SDK.

License:Apache License 2.0


Languages

Language:Go 95.0%Language:Makefile 3.7%Language:Dockerfile 1.4%