-
Add build-and-push script to ConfigMap
kubectl -n hub create configmap primehub-controller-custom-image-scripts --from-file ./scripts/custom_image/
-
Create push secret for container registry, all built images will be pushed using this secret.
kubectl -n hub create secret docker-registry $PUSH_SECRET_NAME --docker-server=$DOCKER_SERVER --docker-username=$DOCKER_USERNAME --docker-password="$DOCKER_PASSWORD"
- Copy
config.yaml.example
toconfig.yaml
- Edit
config.yaml