ziu-2011-to-21.4-hack

command
v0.0.0-...-6ae417f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

Tool to enable ZIU from 2011 to 21.x/master

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

  1. Stop operator to avoid side-effects
kubectl -n tf delete deployment tf-operator
  1. Update CRDs
kubectl apply -f ~/tf-operator/deploy/crds/
  1. Update manager manifest
kubectl apply -k ~/tf-operator/deploy/kustomize/contrail/templates/
  1. 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.

  1. Start new operator that runs ZIU procedure
kubectl apply -k ~/tf-operator/deploy/kustomize/operator/templates/
  1. Wait till ZIU completed and cancel the tool if ZIU finished earlier

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL