...
admissionregistration.k8s.io/v1beta1 → admissionregistration.k8s.io/v1
extensions/v1beta1 and networking.k8s.io/v1beta1 → networking.k8s.io/v1
apiextensions.k8s.io/v1beta1 → apiextensions.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
Get a local copy of the helm chart
Code Block language bash
...
helm
...
pull
...
hivemq/hivemq-operator --untar
Identify files that contain networking.k8s.io/v1beta1
Code Block language bash grep -R networking.k8s.io/v1beta1 ./hivemq-operator
Edit the
./charts/hivemq-swarm/templates/ingress.yaml
. Update API version v1beta1 to v1:Code Block language diff < apiVersion: networking.k8s.io/v1beta1 --- > apiVersion: networking.k8s.io/v1
Update
backend
todefaultBackend
and its keys from
...
the following:
Code Block language
...
diff < backend: < serviceName: {{ $fullName }}-api < servicePort: api
to
...
the following:
Code Block language
...
diff > defaultBackend: > service: > name: {{ $fullName }}-api > port: > name: api
Add
pathType
to thepath
:Code Block language
...
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 | ||
---|---|---|
| ||
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 |
...
Deploy the helm chart from the directory with patched files:
Code Block language bash helm upgrade my-hivemq \ --install
...
./hivemq-operator
...
\ --values my-values.yaml
Done.
\uD83D\uDCCB Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|