Configure the Container Image Registry🔗
This page describes how to configure the container image registry. By default, the chart pulls images from a private DockerHub repository, but it also supports configuring a custom private registry.
Default Image Repository🔗
In the default values.yaml, the container images repository are defined as follows:
deployments:
frontend:
image:
repository: lightruncom/webapp
backend:
image:
repository: lightruncom/server
initContainers:
wait_for_keycloak:
image:
repository: lightruncom/chart-helper
p12_creator:
image:
repository: lightruncom/chart-helper
wait_for_rabbitmq:
image:
repository: lightruncom/chart-helper
keycloak:
image:
repository: lightruncom/keycloak
initContainers:
cluster_cert:
image:
repository: lightruncom/chart-helper
redis:
image:
repository: lightruncom/redis
rabbitmq:
image:
repository: lightruncom/rabbitmq
initContainers:
rabbitmq_config:
repository: lightruncom/chart-helper
data_streamer:
image:
repository: lightruncom/data-streamer
router:
image:
repository: lightruncom/router
lightruncom refers to a private repository on DockerHub. To change the registry, update the repository values for all images: deployments:
frontend:
image:
repository: myregistry.com/lightrun/webapp
backend:
image:
repository: myregistry.com/lightrun/server
...
Configuring ImagePullSecrets for Registry🔗
[!NOTE] Although the name is
dockerhub_config, it is not limited to dockerhub and can be used for any image registry.
The configuration is defined under secrets.defaults.dockerhub_config:
secrets:
defaults:
dockerhub_config:
existingSecret: ""
configContent: ""
Supported Configuration Modes🔗
- Creating a New Secret for Private Registry(
configContent)) (Default for Lightrun private registry) - Using an Existing ImagePullSecret(
existingSecret)) - Disabling ImagePullSecrets (Commonly used to allow anonymous calls)
1. Create a New Secret for Private Registry(configContent)🔗
In this mode, the chart will create the imagePullSecrets secret based on the configContent provided during the installation.
secrets:
defaults:
dockerhub_config:
configContent: "BASE64_ENCODED_AUTH_CONFIG"
[!NOTE] By default, the chart is configured to use
lightruncomas a private registry, and the value forconfigContentis provided by a Lightrun representitive.
However, if you are not using the default Lightrun private registry and instead need to use your own private registry that requires authentication, you will need to manually follow these steps to create the image pull secret as part of the chart:
To construct the auth field, first create an authentication string:
echo -n 'username:password' | base64
{
"auths": {
"https://your-private-registry.com": {
"auth": "BASE64_ENCODED_STRING"
}
}
}
configContent: # For Linux (GNU base64)
cat auth.json | base64 -w 0
# For macOS (BSD base64)
cat auth.json | base64 -b 0
2. Use an Existing ImagePullSecret(existingSecret)🔗
If you have an existing Kubernetes secret for registry authentication, set the existingSecret field:
secrets:
defaults:
dockerhub_config:
existingSecret: my-container-registry-secret
3. Disable ImagePullSecrets🔗
This mode is used when the registry that does not require authentication, disable imagePullSecrets by setting dockerhub_config to null:
secrets:
defaults:
dockerhub_config: null