# Provisioner installation with Registry Override

Before proceeding, ensure your cluster meets the installation prerequisites. Review them [here](https://perfectscale.atlassian.net/wiki/spaces/DEVELOPMEN/pages/2257715211/Prerequisites+for+PerfectScale+Provisioner+in+Self-hosted+Kubernetes+Environments?atlOrigin=eyJpIjoiM2E3ZDEzNGIyNzE3NDBlMWE2ODY0ZmRiNDM2MzNlNjYiLCJwIjoiYyJ9).

## Copy container images to the target Registry

You need to copy container images from the PerfectScale public ECR to your target container registry. To clone container images, follow the steps below.

{% hint style="info" %}
Ensure you have the **provisioner binary**, **helmfile.yaml**, **config.yaml**, and **tenant\_id** provided by PerfectScale.
{% endhint %}

### Configure the config.yaml&#x20;

Use the following parameters to configure `config.yaml` .

```yaml
access_key: 
secret_key: 
suffix_url: "DNS name"
tenant_id: "vendor_tenant_id" # provided by PerfectScale
namespace: <namespace_name>
kube_context: <k8s_cluster_context>
kube_config: <path_to_kubeconfig_file>
helmfile: "helmfile.yaml" # provided by PerfectScale
registry_override: "your_container_registry_name"
```

### Turn off the token refresher

Turn off the `token refresher`  installation chart in the helmfile provided by PerfectScale.

```yaml
# In the helmfile search token refresher chart and modify `installedTemplate: false`
- chart: perfectscale-public/token-refresher
      version: 0.1.0
      name: token-refresher
      labels:
        group: infra
      installedTemplate: false
```

## The copy-image command <a href="#the-copy-image-command" id="the-copy-image-command"></a>

{% hint style="info" %}
Make sure you are logged in to your desired container registry
{% endhint %}

{% hint style="info" %}
**Example:** Azure container registry

```yaml
az login
az acr login --name your-registry-name
```

{% endhint %}

1. Run the `copy-image` command

To start copying container images from our container registry to your target registry, run the following command:

```
./provisioner copy-images
```

{% hint style="warning" %}
This operation may take some time. Ensure you have a stable internet connection throughout the process.
{% endhint %}

2. Install the provisioner

```
./provisioner install
```
