-
Notifications
You must be signed in to change notification settings - Fork 401
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
Disconnected mode support #333
Comments
@dciancio what exactly do you mean with disconnected installations? Do you mean that the operator only installs Grafana, but then does not reconcile any resources? |
Speaking offline with @dciancio , my understanding of 'disconnected' is that there is no access to the internet and any resources & images are mirrored to a local registry. With that being said, I believe the ask here is if anything in the operator itself needs to reach out to the internet in order to operate (please correct me if my understanding is incorrect). The only thing I'm aware of is any grafana plugins that may be specified in a dashboard, which are retrieved from grafana.com @pb82 Is there anything else you can think of? |
i can add my experience from our OpenShift disconnected Setup. I had to change some quay.io URLs in the grafana-operator with https://access.redhat.com/solutions/4817401 |
@tsia @david-martin Would it be possible to make the operator check ImageContentSourcePolicies and if configured, leverage that configuration? |
It sounds reasonable. The grafana/grafana image ref looks to be configured in https://github.com/integr8ly/grafana-operator/blob/b6a0c35986312a13d53692033af94e681b03abc4/pkg/controller/model/constants.go#L4-L5 |
@david-martin - so if I understand this correctly,
Basically, are you saying the operator does not contain any hardcoding and should allow for the image resolution to happen correctly? |
Some example template files also reference |
@dciancio From my understanding of ImageContentSourcePolicies from reading With regards any plugins, you would need to specify a url (or mirror url) of where any plugins you want to use are available. |
@david-martin Key element of ImageContentSourcePolicies is that there is no pull possible whenever an image is referred by it's tag. This MUST be a SHA256 digest. So every container image used by the operator - and Grafana - will needed to be referenced by their SHA256 digests in order to be "redirected" to an internal registry. A resulting
The |
I found the following images to be used - may be there are others as well.
Hope this helps. |
Using
ends up in errors:
|
I see quay.io referenced in at least 7 places in code: https://github.com/integr8ly/grafana-operator/search?q=quay.io&type=code |
@ddreggors Note that only *.go files should apply, yaml examples, makefiles or markdown docs shouldn't be considered hardcoding as they don't strictly affect runtime logic. |
Hi , I am trying to install community grafana operator in disconnected mode . Can anyone share the procedure to install grafana operator using CLI command?. |
Some changes to the Operator are probably required, but this link could be helpful @arunasajjan https://docs.openshift.com/container-platform/4.8/operators/admin/olm-restricted-networks.html#olm-pruning-index-image_olm-restricted-networks |
This issue hasn't been updated for a while, marking as stale, please respond within the next 7 days to remove this label |
Does this operator support disconnected installations?
If not, is this something that could be added?
Installation using the operator would make things a lot easier to deploy, rather than deploying Grafana and any dependencies manually, especially having to maintain / upgrade the component after initial installation.
The text was updated successfully, but these errors were encountered: