Enabling the use of Gateway API
Gateway API is a flexible system for controlling incoming traffic to Kubernetes applications. You can configure Gateway API for License Service. This feature is available from License Service version 4.2.21.
Before you begin
About this task
- This procedure provides a validated example of configuring Gateway API by using the Envoy implementation. You might choose an alternative approach. However, if it does not work, it is your responsibility to troubleshoot the solution or use the one that is described in this procedure.
- If you manually enabled the use of Gateway API by using this technote, you do not need to perform this procedure.
Procedure
What to do next
- Delete the old
ingress-nginxcontroller. License Service does not delete the existing Ingress definition out of the License Service namespace and does not watch it.Note: Perform this step only if theingress-nginxcontroller is not used by other applications.- If Helm was used to install the
ingress-nginxcontroller, use the following command.
Alternatively, delete the existing resources from thehelm uninstall ingress-nginx --namespace ingress-nginx kubectl delete namespace ingress-nginxingress-nginxnamespace. Then, delete the namespace. - Test again whether the route from step 4 is working.
- If Helm was used to install the
- Delete Ingress from the License Service namespace.
LIC_NS="ibm-licensing" kubectl delete ingress ibm-licensing-service-instance -n "$LIC_NS"
If you want to disable support for Gateway API, run the following command.
LIC_NS="ibm-licensing"
kubectl patch ibmlicensing instance -n "$LIC_NS" --type=merge -p '
spec:
gatewayEnabled: false
'