Kubernetes Metadata

Note: This page is intended for Kubernetes administrators and other advanced Kubernetes users.

HPE Ezmeral Container Platform includes two sets of custom resources and two operators running in the hpecp namespace that manage those resources:

These custom resources can have labels and annotations on them that communicate useful information about their properties or context. Users who manually/explicitly create Kubernetes pod and service resources can also choose to add certain labels or other properties to those objects to trigger additional feature behaviors in the hpecp-agent operator.

Labels That Can be Used to Trigger Features

Other Feature Controls

If the port name within a Kubernetes service object starts with the prefix http- or https-, then this can affect its exposure through the Gateway host and the web interface:

Services and port names generated by KubeDirector will always have a port name prefix that comes from the urlScheme for that endpoint, as defined by the KubeDirector app. Manual explicit port naming is therefore usually only of interest when you are creating http/https services outside of KubeDirector.

Labels Generated by KubeDirector

The labels generated by KubeDirector on any statefulset, pod, or service (either per-member or headless) are:

Labels generated by KubeDirector on any statefulset, pod, or per-member service created by KubeDirector :

Labels generated by KubeDirector on any statefulset or pod created by KubeDirector :

Labels generated by HPECP Agent on any statefulset pod created by KubeDirector :

Labels generated by HPECP Agent on any NodePort service:

Labels generated by HPECP Agent on any namespace associated with an HPE Ezmeral Container Platform Tenant:

User-Requested Labels through KubeDirector

Annotations Generated by KDKubeDirector

Annotations generated by KDKubeDirector on any statefulset, pod, or service created by KubeDirector :

Annotations generated by HPECP Agent on any service where gateway mapping is enabled:

Other Conventions

HPE Ezmeral Container Platform gives the following annotations to a Kubernetes tenant resource. These annotations are not required by the tenant CRD, but they are useful as FYIs for anyone examining the tenant object.

The tenant Kubernetes resource name also always follows the convention hpecp-tenant-<tenant ID>. For example, if the tenant in the API is /api/v2/tenant/44, then the Kubernetes resource will be named hpecp-tenant-44. Some functionality around reporting existing tenant/namespace associations relies on this convention.