oc -n openshift-config get secret pull-secret -o jsonpath="{.data.\.dockerconfigjson}" | base64 -d | jq
oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=dockerconfig.json
- should be synced to worker:
/.docker/config.json
- no worker reboot needed
oc get imagecontentsourcepolicy -o yaml
|oc get imagedigestmirrorset -o yaml
- should be synced to worker:
/etc/containers/registries.conf
- worker reboot required
- deploy a
deamonset
to run on worker nodes - the container mount worker filesystem
- the container sychronizes Global Pull Secret to disk
- the container sychronizes Image Content Source Policy to disk
worker reboot looks like not necessary for ocp 4.9+- forglobal pull secret
only- worker still needs reboot for
image content source policy
|image digest mirror set
- no
ibmcloud
credentials required (oc debug node to reboot) - easy with a
daemonset
deploy - no difference thereafter with regular openshift env
- flexible (no pre-defined staff)
- have
oc
cli available - have
oc
configured export your ibmcloud api keyexport IBMCLOUD_APIKEY=replace-with-your-api-key
[if prompted] export your ibmcloud cluster and region informationexport IBMCLOUD_REGION=replace-with-cluster-region; export IBMCLOUD_CLUSTER=replace-with-cluster-name-or-id
- install
daemonset
by executing script./enabler.sh
- treat
rosa
no difference with otheropenshift
env