Kubernetes API v1.22 migration
This article applies the https://kubernetes.io/docs/reference/using-api/deprecation-guide/ to the hivemq-operator
Helm chart.
The v1.22 release stopped serving the v1beta1 deprecated API versions:
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.
Overall, the guide recommends migrating manifests and API clients to use the v1 API version instead of v1beta1. Changes to some values names and defaults also must be made.
Instructions
Get a local copy of the helm chart
helm pull hivemq/hivemq-operator --untar
Identify files that contain networking.k8s.io/v1beta1
grep -R networking.k8s.io/v1beta1 ./hivemq-operator
Edit the
./charts/hivemq-swarm/templates/ingress.yaml
. Update API version v1beta1 to v1:< apiVersion: networking.k8s.io/v1beta1 --- > apiVersion: networking.k8s.io/v1
Update
backend
todefaultBackend
and its keys from the following:to the following:
Add
pathType
to thepath
:
The rest of the manifest files already include proper handling of depreciated API version.
Next step is to deploy the patched chart from the directory to a Kubernetes cluster.
Deploy helm chart from a directory
Deploy the helm chart from the directory with patched files:
Done.
Related articles
Filter by label
There are no items with the selected labels at this time.