Set an external Docker registry
By default, you install Kyma with Serverless that uses the internal Docker registry running on a cluster. This tutorial shows how to override this default setup with an external Docker registry from one of these cloud providers:
CAUTION: Function images are not cached in the Docker Hub. The reason is that this registry is not compatible with the caching logic defined in Kaniko that Serverless uses for building images.
Prerequisites
- Docker Hub
- GAR
- ACR
Steps
Create required cloud resources
- Docker Hub
- GAR
- ACR
Override Serverless configuration
Prepare yaml file with overrides that match your Docker registry provider:
- Docker Hub
- GAR
- ACR
CAUTION: If you want to set an external Docker registry before you install Kyma, manually apply the Secret to the cluster before you run the installation script.
Apply configuration
Deploy Kyma with different configuration for Docker registry . Run:
kyma deploy --values-file docker-registry-overrides.yaml
NOTE: To learn more, read about changing kyma configuration.