This page describes the custom Kubernetes Labels & Annotations that Apollo adds to Products when running them in a Spoke Environment.
For a service to have its liveness and readiness reported to the Apollo Platform, the label apollo.palantir.com/status.liveness_and_readiness
must be on the Pod spec template for the service. The label is automatically added to any Entity deployed using the provided Apollo Agent.
Example:
Copied!1
apollo.palantir.com/status.liveness_and_readiness: ""
Value: The value of the annotation is the Apollo Environment ID the Entity belongs to. The Apollo Environment ID annotation is automatically added when deploying Entities using the provided Apollo Agent.
Example:
apollo.palantir.com/metadata.environment.id: example-apollo-environment-id
Value: The value of the annotation is the ID of the Apollo Entity the K8s Object is related to. The Apollo Entity
format is aeid:<apollo-environment-id>:<entity-type>:<entity-name>
. Apollo Entity IDs must be less than 255 characters. The Apollo Entity ID annotation is automatically added when deploying Entities using the provided Apollo Agent.
Example:
apollo.palantir.com/metadata.entity.id: "aeid:example-apollo-environment-id:helm-chart:prometheus-helm"
Value: The value of the annotation is the product name of the Apollo Entity the K8s Object is related to. The product name is automatically added when deploying Entities using the provided Apollo Agent.
Example:
apollo.palantir.com/metadata.product.name: prometheus
Value: The value of the annotation is the product group of the Apollo Entity the K8s Object is related to. The product group is automatically added when deploying Entities using the provided Apollo Agent.
Example:
apollo.palantir.com/metadata.product.group: com.palantir
Value: The value of the annotation is the product version of the Apollo Entity the K8s Object is related to. The product version is automatically added when deploying Entities using the provided Apollo Agent.
Example:
apollo.palantir.com/metadata.product.version: 2.0.0
The value of the pod key pair v2 annotation. This annotation will generate a new private key and certificate signed by the Apollo pod CA along with the CA certificate for the pod CA. Using this annotation will cause the following files to be rendered in a pod:
Fields:
Example:
Copied!1 2 3 4 5 6 7 8 9
com.palantir.rubix.pod/pod-key-pair-v2: > { "service": { "name": "test-service", "namespace":"services-yellow" }, "authnId":"TEST USER ID" }