-
|
Hi, we're running an airgapped k8s cluster. Images are copied into a private registry. This registry requires authentication. piraeus-operator version used : v2.8.0 For the operator creation, I use a kustomization to alter the image and add the imagePullSecrets to the manifests -- this works. However, when I create a linstorCluster, I can only override the image repository, I see no place in the crd to add the imagePullSecrets. How/where do I specify the imagePullSecrets in the linstorCluster resource ? I am also assuming this overrides the Thanks in advance, Peter. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
The way to do this is currently to patch the Operator deployment like this: patches:
- patch: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
spec:
template:
spec:
containers:
- name: manager
env:
- name: PULL_SECRET
value: pull-secret
target:
kind: Deployment
name: controller-managerSetting the |
Beta Was this translation helpful? Give feedback.
-
|
tested suggested answer with v2.8.0 - works ! Thank you @WanzenBug ! |
Beta Was this translation helpful? Give feedback.
-
|
For anyone trying to use a private registry, these are the kustomization files I used : kustomization.yaml nameRef-secret-to-deployment-env.yaml There should also be a |
Beta Was this translation helpful? Give feedback.
The way to do this is currently to patch the Operator deployment like this:
Setting the
PULL_SECRETvariable on the operator deployment will add the pull secret to all the workloads deployed by the operator