mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
|
||
---|---|---|
.. | ||
resources | ||
provider.sh | ||
README.md |
External Kubernetes Provider
This provider works with an existing Kubernetes cluster. You'll want to configure your own Container Image Registry, we tie into the existing Make/Build workflow, but modify things such that:
- We build container images and push to the specified registry (instead of
registry:5000
) - We generate the manifests with the provided DOCKER_PREFIX (uses default port)
- Uses your configured
kubectl
and deploys your build to the existing cluster
Building images and pushing to your registry
export DOCKER_PREFIX=index.docker.io/barney_rubble
export DOCKER_TAG=latest # defaults to `latest`
export KUBEVIRT_PROVIDER=external
make docker push
Build and push images, create manifests and deploy CDI
We use the same workflow as the ephemeral dev environment, but skip make cluster-up
:
export DOCKER_PREFIX=index.docker.io/barney_rubble
export DOCKER_TAG=latest # defaults to `latest`
export KUBEVIRT_PROVIDER=external
make cluster-sync
A note about kubernetes local-up-cluster.sh
The external provider isn't quite appropriate for use with the local-up-cluster.sh script used
in the Kubernetes source repo. We'll need to add an additional local
provider for this to
handle some of the specifics.