Skip to the content.

Updating your cluster to a new version:

WIP

Upgrade:

oc adm upgrade 

Cluster version is 4.4.0-0.okd-2020-04-09-104654

Updates:

VERSION                       IMAGE
4.4.0-0.okd-2020-04-09-113408 registry.svc.ci.openshift.org/origin/release@sha256:724d170530bd738830f0ba370e74d94a22fc70cf1c017b1d1447d39ae7c3cf4f
4.4.0-0.okd-2020-04-09-124138 registry.svc.ci.openshift.org/origin/release@sha256:ce16ac845c0a0d178149553a51214367f63860aea71c0337f25556f25e5b8bb3

ssh root@${LAB_NAMESERVER} 'sed -i "s|registry.svc.ci.openshift.org|;sinkhole|g" /etc/named/zones/db.sinkhole && systemctl restart named'

export OKD_RELEASE=4.4.0-0.okd-2020-04-09-124138

oc adm -a ${LOCAL_SECRET_JSON} release mirror --from=${OKD_REGISTRY}:${OKD_RELEASE} --to=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY} --to-release-image=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OKD_RELEASE}

OKD_VER=$(echo $OKD_RELEASE | sed  "s|4.4.0-0.okd|4.4|g")
cp ${OKD4_LAB_PATH}/okd-upgrade.yaml ${OKD4_LAB_PATH}/${OKD_VER}.yaml
sed -i "s|%%OKD_VER%%|${OKD_VER}|g" ${OKD4_LAB_PATH}/${OKD_VER}.yaml
oc apply -f ${OKD4_LAB_PATH}/${OKD_VER}.yaml

ssh root@${LAB_NAMESERVER} 'sed -i "s|;sinkhole|registry.svc.ci.openshift.org|g" /etc/named/zones/db.sinkhole && systemctl restart named'

oc adm upgrade --to=${OKD_RELEASE} --force