github.com/kubeshop/testkube@v1.17.23/docs/docs/articles/deploying-from-private-registries.md (about)

     1  # Guide to Deploying Testkube from Private Registries  
     2  
     3  This guide shows how to deploy Testkube using images from private registries. 
     4  
     5  To start with, we need to update `values.yaml` file, populating `registry` and `pullSecret` parameters with a value of your private registry and a k8s secret respectively. (Please note that the [k8s secret](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) should be created prior to Testkube installation.) 
     6  The easiest solution would be to update `global` parameters, which will set a new value for **all** Testkube components, including MongoDB images:
     7  
     8  ```aidl
     9  global:
    10    imageRegistry: ""
    11    imagePullSecrets: []
    12    labels: {}
    13    annotations: {}
    14  ```
    15  However, NATS chart that is part of Testkube belongs to a third party and as of now it requires passing image registry and image pull secret parameters separately. The snippet from the `values.yaml` file for NATS chart:
    16  ```aidl
    17  nats:
    18      imagePullSecrets: 
    19         - name: your-secret-name
    20      nats:
    21          image:
    22              registry: REGISTRY_NAME 
    23      natsbox:
    24          image:
    25              registry: REGISTRY_NAME  
    26      reloader:
    27          image:
    28              registry: REGISTRY_NAME  
    29      exporter:
    30          image:
    31              registry: REGISTRY_NAME
    32  ```
    33  
    34  :::caution
    35  
    36  Please mind that `global` parameters override all local values, so if it is required to set different registries or secret names, please use `registry` and `pullSecret` parameter for each Testkube service. For example `testkube-api`:
    37  ```aidl
    38  testkube-api:
    39     image: 
    40       registry: your-registry-name
    41       repository: kubeshop/testkube-api-server
    42       tag: "latest"
    43       pullPolicy: IfNotPresent
    44       pullSecret: 
    45         - your-secret-name
    46  
    47  ```
    48  :::
    49  
    50  Once the `values.yaml` is ready we may deploy Testkube to the k8s cluster:
    51  ```aidl
    52  helm repo add kubeshop https://kubeshop.github.io/helm-charts
    53  helm install --create-namespace testkube kubeshop/testkube --namespace testkube --values ./path-to-values.yaml
    54  ```