Differences between revisions 2 and 3
Revision 2 as of 2020-04-15 20:47:43
Size: 1216
Editor: PieterSmit
Comment:
Revision 3 as of 2020-04-15 20:57:27
Size: 1261
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
 * ONLY helm version >= 3.2 $ helm version

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

  • ONLY helm version >= 3.2 $ helm version

  • https://github.com/helm/helm/pull/7649

  • 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

Helm migration v2 to v2 2020

k8s/helm/HelmV2ToV3 (last edited 2020-05-06 07:41:38 by PieterSmit)