Adding labels and annotations

Adding labels and annotations to Kubernetes Ingress

You can configure Kubernetes Ingress labels and annotations, if your organization requires them.

Prerequisites
  • An active kubectl session with administrative permissions to the destination Kubernetes cluster. See Overview of kubectl.

  • An instance of Che running in Kubernetes.

Procedure
  • Configure the CheCluster Custom Resource. See Using the CLI to configure the CheCluster Custom Resource.

    spec:
      networking:
        labels: <labels> (1)
        annotations: <annotations> (2)
    1 An unstructured key value map of labels for Kubernetes Ingress.
    2 An unstructured key value map of annotations for Kubernetes Ingress.

Configuring OpenShift Route to work with Router Sharding

You can configure labels, annotations, and domains for OpenShift Route to work with Router Sharding.

Prerequisites
Procedure
  • Configure the CheCluster Custom Resource. See Using the CLI to configure the CheCluster Custom Resource.

    spec:
      networking:
        labels: <labels> (1)
        domain: <domain> (2)
        annotations: <annotations> (3)
    1 An unstructured key value map of labels that the target ingress controller uses to filter the set of Routes to service.
    2 The DNS name serviced by the target ingress controller.
    3 An unstructured key value map stored with a resource.