This guide explains how to test local code changes in your kind cluster.
The images are built in cf-k8s-releases. For building the image with modified source code, please refer to th local-development-guide.
Make the locally built image available to your kind cluster:
kind load docker-image <image>:latest --name cfk8sExample:
kind load docker-image gorouter:latest --name cfk8sUpdate the deployment or daemonset to use your local image:
kubectl edit deployment <component-name>Example:
kubectl edit deployment gorouterModify the image and pull policy:
spec:
template:
spec:
containers:
- name: gorouter
image: gorouter:latest
imagePullPolicy: IfNotPresent # Important: prevents pulling from registryAfter save and exit the relevant pods will be restarted automatically.