Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • admissionregistration.k8s.io/v1beta1admissionregistration.k8s.io/v1

  • extensions/v1beta1 and networking.k8s.io/v1beta1networking.k8s.io/v1

  • apiextensions.k8s.io/v1beta1apiextensions.k8s.io/v1

  • etc.

The guide indicates to migrate Overall, the guide recommends migrating manifests and API clients to use the v1 API version instead of v1beta1. You also must make changes Changes to some values names and defaults also must be made.

\uD83D\uDCD8 Instructions

  1. Get a local copy of the helm chart

    Code Block
    languagebash

...

  1. helm 

...

  1. pull 

...

  1. hivemq/hivemq-operator --untar
  2. Identify files that contain networking.k8s.io/v1beta1

    Code Block
    languagebash
    grep -R networking.k8s.io/v1beta1 ./hivemq-operator
  3. Edit the ./charts/hivemq-swarm/templates/ingress.yaml. Update API version v1beta1 to v1:

    Code Block
    languagediff
    < apiVersion: networking.k8s.io/v1beta1
    ---
    > apiVersion: networking.k8s.io/v1
  4. Update backend to defaultBackend and its keys from

...

  1. the following:

    Code Block
    language

...

  1. diff
    <  backend:
    <    serviceName: {{ $fullName }}-api
    <    servicePort: api

    to

...

  1. the following:

    Code Block
    language

...

  1. diff
    >  defaultBackend:
    >    service:
    >      name: {{ $fullName }}-api
    >      port:
    >        name: api
  2. Add pathType to the path:

    Code Block
    language

...

  1. diff
      - path: /
    >    pathType: ImplementationSpecific

All other YAML The rest of the manifest files already have include proper handling of depreciated API versions properly handled*. The patching is Done. version.

Next step is to deploy the patched chart from the directory to a kubernetes Kubernetes cluster.

\uD83D\uDCD8 Deploy helm chart from a directory

Package the helm chart

Code Block
languagebash
helm package ./helm-charts/charts/hivemq-operator \
  --dependency-update  \
  --destination result-dir
  
Successfully packaged chart and saved it to: result-dir/hivemq-operator-0.11.5.tgz

...

  1. Deploy the helm chart from the directory with patched files:

    Code Block
    languagebash
    helm upgrade my-hivemq \
      --install 

...

  1. ./hivemq-operator

...

  1.  \
      --values my-values.yaml
  2. Done.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@d1770c07
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "~131801395"
labelskb-how-to-article