Configuring labels for Kubernetes Ingress
This procedure describes how to configure labels for Kubernetes Ingress to organize and categorize (scope and select) objects.
Prerequisites
-
The
kubectl
tool is available. -
An instance of Che running in Kubernetes.
Use comma to separate labels: key1=value1,key2=value2
|
Procedure
-
To configure labels for Kubernetes Ingress update the Custom Resource with the following commands:
$ kubectl patch checluster eclipse-che -n eclipse-che --type=json -p \ '[{"op": "replace", "path": "/spec/server/cheServerIngress/labels", '\ '"value": "<labels for a che server ingress>"}]' $ kubectl patch checluster eclipse-che -n eclipse-che --type=json -p \ '[{"op": "replace", "path": "/spec/auth/identityProviderIngress/labels", '\ '"value": "<labels for a Keycloak ingress>"}]' $ kubectl patch checluster eclipse-che -n eclipse-che --type=json -p \ '[{"op": "replace", "path": "/spec/server/pluginRegistryIngress/labels", '\ '"value": "<labels for a plugin registry ingress>"}]' $ kubectl patch checluster eclipse-che -n eclipse-che --type=json -p \ '[{"op": "replace", "path": "/spec/server/devfileRegistryIngress/labels",'\ '"value": "<labels for a devfile registry ingress>"}]'