Deploy the controller-manager in a Kubernetes cluster

Deploying the controller to a Kubernetes cluster involves following steps:

Building the docker image

Pushing the docker image to the container registry

Customizing the deployment manifests

Applying the manifests to deploy in the cluster

Kubebuilder generated Makefile supports all the above steps.

Prerequisites

Kubebuilder generated Makefile uses Kustomize for customizing the manifests
before deploying to the kubernetes cluster. Follow the instructions to install Kustomize and
ensure that is available in the PATH. Note that Kubebuilder requires Kustomize version 1.0.4 or higher for deploy to work.