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:
      components:
        cheServer:
          extraProperties:
            CHE_INFRA_KUBERNETES_INGRESS_LABELS: <labels> (1)
            CHE_INFRA_KUBERNETES_INGRESS_ANNOTATIONS__JSON: "<annotations>" (2)
        networking:
          labels: <labels> (1)
          annotations: <annotations> (2)
    1 A comma-separated list of labels for Kubernetes Ingress: key1=value1,key2=value2.
    2 Annotations for Kubernetes Ingress in JSON format: {"key1": "value1", "key2" : "value2"}.