Installation with Rendered Manifests
If your platform standards don’t allow Helm to hold release state in the cluster, you can render the Optimizer Hub Helm chart into plain Kubernetes manifests with helm template and apply them with kubectl apply. This render-and-apply path has the same support level as helm install.
This page only describes what differs from the Helm installation. For the other steps, follow the Standard Installation Procedure:
For the supported Kubernetes versions, see Kubernetes Requirements. For the values you can set, see Optimizer Hub Generic Defaults and Customizing the Optimizer Hub Deployment.
Support Boundary
-
Supported:
helm installandhelm upgrade, and manifests rendered from the chart and applied withkubectl apply. Both have the same support level. Switching components on or off and configuring them through Helm values is supported. This includesgwProxy.enabled=false,existingServiceAccount, the componentenabledflags, and the Role and RoleBinding switch. -
Best effort: Customer edits made after rendering.
-
Not supported: Removing or replacing rendered objects by hand, for example replacing the
cacheStatefulSet, and translating the objects into third-party or proprietary deployment systems. Questions about the object graph are answered, but the resulting installation isn’t warranted.
For the extension contract, see Network and Gateway Requirements > Extension Contract and Support Boundary.
Render the Manifests
Render the chart into a single file. Always specify the version you want to install.
helm template opthub opthub-helm/azul-opthub \
--namespace my-opthub \
-f values-override.yaml \
--version 26.11.0 > opthub.yaml
|
Important
|
The --namespace option is mandatory. A rendered file belongs to one namespace. To use another namespace, render the chart again. Never edit the generated file.
|
The same chart version, values, and namespace produce the same file. The Envoy image uses a floating tag, so the image that runs can still change.
Apply and Verify
Apply the file using the same namespace you used for --namespace, and verify that all pods start and reach ready state:
kubectl apply -n my-opthub -f opthub.yaml
kubectl get all -n my-opthub
Customizing the Deployment
Customize Optimizer Hub only through Helm values. Never edit the generated file or the live quarkus-config-* ConfigMap. Render the manifests again after every change.
Changing the Configuration
-
Edit
values-override.yaml. -
Render the manifests again.
-
Apply the new file.
Optimizer Hub receives opthub.properties through an immutable ConfigMap named quarkus-config-<hash>. A configuration change creates a new ConfigMap and updates the pod templates, so the workloads roll out without a manual restart.
Removing Superseded ConfigMaps
kubectl apply does not delete the previous quarkus-config-<hash> ConfigMap, so one remains after every configuration change.
Remove a ConfigMap only when:
-
no workload references it, and
-
the rollout has completed and the workloads are Ready.
|
Warning
|
Do not remove the gw-proxy ConfigMap this way. It is a different, mutable object that holds the Envoy configuration.
|
Upgrading to a New Version
-
Follow the steps in Upgrading or Rolling Back: shut down the existing instance, including the
cachepods, and validate yourvalues-override.yamlfile. -
Render the manifests with the target
--version, and apply them as described above. -
Remove the objects that the new release no longer renders.
kubectl applydoes not remove them. Compare the list of objects of the installed release with the list of the target release, and remove the objects that are only in the first. This also works when you skip releases. -
Remove the ConfigMaps that are no longer referenced, as described in Removing Superseded ConfigMaps.
Troubleshooting
For problems with a running Optimizer Hub, see Troubleshooting Optimizer Hub.
kubectl apply fails with a namespace mismatch
Symptom: kubectl apply -n <other-ns> -f opthub.yaml fails once for each object that carries a namespace:
error: the namespace from the provided object "<ns>" does not match the namespace "<other-ns>". You must pass '--namespace=<ns>' to perform this operation.
Cause: The file was rendered for a different namespace than the one given to -n.
Fix: Render the manifests again with --namespace set to the intended namespace, and apply them with the same -n. Don’t edit the file.
|
Note
|
kubectl handles each object separately. An object that carries no namespace in the file is accepted into the namespace given with -n, so a rejected apply can still create objects there. Check the namespace you applied to, and remove anything the rejected apply created.
|