⇤ ← Revision 1 as of 2020-04-15 20:47:25
1215
Comment:
|
1216
|
Deletions are marked like this. | Additions are marked like this. |
Line 23: | Line 23: |
== Live v2 to v3 migration might need these annotation added === | === Live v2 to v3 migration might need these annotation added === |
k8s helm v2 to v3 migration
2020-04 Steps
- Assumes v2 was tillerless, else remove the --tiller-out-cluster
set env
$ export en=dev $ export ch=main
convert helm 2 to 3
$ helm 2to3 convert --tiller-out-cluster --namespace $ch-$en $ch-$en
remove --dry-run from commandline.
$ time helm upgrade --namespace $ch-$en --install -f git/build.manifest/artifacts.yaml -f git/9s/9spokeshelmchart/env/9spokes/$en/values.yaml $ch-$en git/9s/9spokeshelmchart/ --atomic --debug --dry-run Release "nsp-main" has been upgraded. Happy Helming!
Later cleanup
$ helm3 2to3 cleanup -tiller-out-cluster
Live v2 to v3 migration might need these annotation added
Add to v2 and then migrate
KIND=deployment NAME=my-app-staging RELEASE=staging NAMESPACE=default kubectl annotate $KIND $NAME meta.helm.sh/release-name=$RELEASE kubectl annotate $KIND $NAME meta.helm.sh/release-namespace=$NAMESPACE kubectl label $KIND $NAME app.kubernetes.io/managed-by=Helm