You can use KIND to get a local cluster for development.
cat <<EOF > kind-poc-cluster.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: poc
nodes:
- role: control-plane
- role: worker
- role: worker
featureGates:
InPlacePodVerticalScaling: true
EOF
kind create cluster --config kind-poc-cluster.yaml
-
Install CRDs on a cluster
make install
-
Build docker image
make docker-build IMG=kube-startup-cpu-boost:dev
-
Load docker image to development cluster
kind load docker-image --name poc kube-startup-cpu-boost:dev
-
Enable development logging and other options if needed
In
config/default/kustomization.yaml
uncomment the dev patch:# Uncomment below for development - manager_config_dev_patch.yaml
Adapt the
config/default/manager_config_dev_patch.yaml
if needed. -
Deploy controller on a cluster
make deploy IMG=docker.io/library/kube-startup-cpu-boost:dev