Differences between revisions 1 and 2
Revision 1 as of 2020-04-15 20:47:25
Size: 1215
Editor: PieterSmit
Comment:
Revision 2 as of 2020-04-15 20:47:43
Size: 1216
Editor: PieterSmit
Comment:
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

  • 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

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