Skip to main content
Version: 3.0.0-beta8

Using different Image Registries in a Chaos Scenario

A container image registry can be defined as a collection of repositories that store container image. These can be either public or private. Few of the container image registries are Docker, Red Hat Quay, Google Container Registry. By default LitmusChaos uses DockerHub for managing the different images. These images are then used in Chaos Scenarios. Few images that are used in the Litmus chaos scenarios are litmuschaos:k8s, litmuschaos:litmus-checker etc. With ChaosCenter, you get the privilege to use your own/custom image registries for Chaos Scenarios.

Before you begin

To understand the concept of Image Registry, make sure you are aware of Chaos Scenario and the different image registries that are used in it.

Steps to Update Chaos Scenario Image Registry

To updated the Chaos Scenario Image Registry, you can go to Settings in ChaosCenter. In settings, there will be tab named Image Registry. On clicking the Image Registry tab, you can see that the default Registry server is, Registry name is litmuschaos and it is a Public registry.

To update this, click on the Use Custom Values option and provide the following details:

  1. Registry Server
  2. Registry Name
  3. Registry Type Public/Private

If the Registry Type is Private, make sure to provide the secret and the namespace where the secret is present.

Once the details are provided, click on the Save Changes button and you can see the updated Image Registry changes.

Now while scheduling a chaos scenario, the image registry changes will be visible. Here's the code snippet from a Chaos Scenario after the image registry change.

- name: install-application
- -namespace=bank
- -typeName=resilient
- -operation=apply
- -timeout=400
- -app=bank-of-anthos
- -scope=cluster
- name: install-chaos-experiments

Learn More