How to change image registry for openshift-monitoring grafana pod from default to an internal?
Issue
- When Red Hat openShift Container Platform cluster was installed, the external Red Hat Registry i.e.
registry.redhat.io
was used, at the end of the installation it was decided to remove access to the external registryregistry.redhat.io
and to use an internal registryregistry.example.com
. - To make it into effect, how to modify the configuration of the
openshift-monitoring
project so that thegrafana
pod takes the image of the internal registryregistry.example.com
? - The following steps were already carried out which re-initiates the
pod
back fromregistry.redhat.io
, even though the registry is changed by editing deployment.
# oc project openshift-monitoring
# oc get deployment
# oc edit deployment grafana
# oc edit deployment grafana -oyaml
Environment
- Red Hat OpenShift Container Platform 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.