2011 version has different laytou of services (how services are mapped
between k8s pods). So ZIU update logic cannot work as is and operator crashes.
ZIU update from 2011 to 21.x/master workflow
- Stop operator to avoid side-effects
kubectl -n tf delete deployment tf-operator
- Update CRDs
kubectl apply -f ~/tf-operator/deploy/crds/
- Update manager manifest
kubectl apply -k ~/tf-operator/deploy/kustomize/contrail/templates/
- Run cli tool to hack 2011 objects
4.1. If the tool is not built - build it.
(If golang is not installed - install it as in main readme )
cd ~/tf-operator/contrib/ziu-2011-to-21.4-hack
go build
4.2. Run the tool
~/tf-operator/contrib/ziu-2011-to-21.4-hack/ziu-2011-to-21.4-hack --repeate 180 --delay 10
Note that real values depends on the setup, usually ZIU takes 15-30 minutes.
- Start new operator that runs ZIU procedure
kubectl apply -k ~/tf-operator/deploy/kustomize/operator/templates/
- Wait till ZIU completed and cancel the tool if ZIU finished earlier