-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trident-operator.imageRegistry with custom registry not handled properly #772
Comments
The fact that for an offline deployment all images have to be available in one registry can be found in https://docs.netapp.com/us-en/trident/trident-get-started/kubernetes-deploy.html#offline-deployment. |
My problem is that I have put the images in one registry. In the description above I called the registry 'myregistry.com'. |
You may also try to use the |
Using all 3 values
still results in an error, because it then tries to use |
Right, I missed including the Operator Image in my response. So if you supply these values:
Are you able to install Trident successfully? |
From my understanding it should be:
For autoSupport the version tag is truncated to 5 characters in the helm chart. If you put all images into a local registry they all need to be put into the same path.
That doesn't work with most typical pass-through proxies. We then need to manually mirror images into an internal registry. That's why it is worth to change the helm chart and cli to accept two registry names. |
@ntap-arorar
This did actually works. At least I see not problems ATM after upgrading my helm chart release. But I think we can agree that this is not really intuitive. And I believe it is not documented this way either. |
I must correct myself. The mentioned settings did not work after all. I guess I did not notice this at first because the pod did not get updated directly after I upgraded the helm chart. |
I gave the helm chart sources another look and found out the value is called
and it seems to work. |
Hi @domruf, New offline install guides are included in the Trident documentation for offline operator and Helm installs. Since not every Trident customer environment is the same, the offline install process has the flexibility of using either one registry location for all required images or multiple registry locations. |
Describe the bug
Our on-prem clusters can't access registries on the internet like registry.k8s.io directly. We have mirrors in our local registry though.
So I though I use a custom values.yaml and set trident-operator.imageRegistry.
The problem is, the helm chart (and operator) does not handle the path of the images properly then.
If I set imageRegistry to 'myregistry.com/netapp' the netapp/* images are found but the registry.k8s.io/sig-storage/* images are not.
If I set imageRegistry to 'myregistry.com/sig-storage' the registry.k8s.io/sig-storage/* images are found but the netapp/* images are not.
IMHO since trident gets its images from 2 different registries, there should also be 2 imageRegistry options, one for registry.k8s.io and one for docker.io (dockerhub).
BTW I already have a quick hack which solves this problem. I added an additional trident-operator.netappImageRegistry to my values and patched the helm chart like this:
With these changes trident runs fine so far.
Environment
Provide accurate information about the environment to help us reproduce the issue.
To Reproduce
Steps to reproduce the behavior:
Deploy trident via helm and set trident-operator.imageRegistry to a custom registry.
Expected behavior
After installing the trident helm chart, all containers are running properly.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: