Skip to main content

Labels, Annotations and Environment Variables

RBG injects specific labels, annotations, and environment variables into Pods for service discovery and coordination.

Labels

LabelDescription
rbg.sgl-project.dev/roleRole identifier
rbg.sgl-project.dev/role-idUnique role ID
rbg.sgl-project.dev/groupRoleBasedGroup name

Annotations

AnnotationDescription
rbg.sgl-project.dev/role-specRole specification hash

Environment Variables

VariableDescription
RBG_ROLECurrent role name
RBG_ROLE_IDUnique role ID
RBG_GROUP_NAMERoleBasedGroup name

Service Discovery

Pods can use these variables to discover other roles in the same RoleBasedGroup.