Kubernetes Labels and Annotations in Zeet Deployment
Service Containers & Job Containers
Containers are a standardized and portable way to package software applications and their dependencies. This ensures consistent performance across different computing environments. With Zeet, deploy containers in your cluster, scale them with replicas for high compute power and availability, and take advantage of various cluster types.
When you deploy a container with Zeet, it comes pre-configured with a set of labels and annotations. These preset values facilitate users in identifying and managing Kubernetes objects associated the deployment.
Labels and Annotations Guide
Pod Specifications
Kubernetes Object Type: Pod
Type | Name | Value Description | Example | Stable |
---|---|---|---|---|
Environment Variable | ZEET_CLUSTER_ID | Unique identifier for the Zeet cluster. | "f47ac10b-58cc-4372-a567-0e02b2c3d479" | Yes |
Environment Variable | ZEET_CLUSTER_NAME | Name of the Zeet cluster. | "my-cluster" | Yes |
Meta Labels
Kubernetes Object Type: Any Kubernetes resource (e.g., Pod, Service, Deployment)
Type | Name | Value Description | Example | Stable |
---|---|---|---|---|
Label | app.kubernetes.io/name | Application identifier. | "my-app" | Yes |
Label | app.kubernetes.io/instance | Instance of the application. | "my-app" | Yes |
Label | app.kubernetes.io/managed-by | Tool managing the operation. | "zeet" | Yes |
Label | app | Application identifier. | "my-app" | No |
Label | project | Project name of the application. | "my-repo" | No |
Label | branch | Branch name, sanitized for Kubernetes usage. | "feature-branch" | No |
Label | repoID | Project unique identifier. | "b6f6f7bb-99dc-451d-8aed-a2cfaa0e7ede" | No |
Selector Labels
Kubernetes Object Type: Service, Deployment, ReplicaSet
Type | Name | Value Description | Example | Stable |
---|---|---|---|---|
Label | app.kubernetes.io/name | Application identifier. | "my-app" | Yes |
Label | app.kubernetes.io/instance | Instance of the application. | "my-app" | Yes |
Label | app.kubernetes.io/managed-by | Tool managing the operation. | "zeet" | Yes |
Container Annotations
Kubernetes Object Type: Pod
Type | Name | Value Description | Example | Stable |
---|---|---|---|---|
Annotation | cluster-autoscaler.kubernetes.io/safe-to-evict | Indicates if the pod can be evicted safely by the cluster autoscaler. | "false" or "true" | Yes |
Annotation | projectID | Project unique identifier. | "9af3c29b-4f0f-4849-9b61-4099c3c355d0" | No |
Annotation | projectName | Project name. | "my-repo" | No |
Annotation | deploymentID | Unique identifier for the deployment. | "1c0eab8d-9f69-4a5a-904e-1d55e5b2d2e4" | No |
Annotation | deploymentBranch | Branch name of the deployment. | "feature-branch" | No |
Annotation | deploymentVersion | Version of the deployment. | "v1.0.0" | No |
Annotation | [custom annotations] | Annotations defined in the deployment customization. | Varies based on customization | No |