Allocation Tagging
Pin a container to a set of hosts using allocation tagging
Last updated
Was this helpful?
Pin a container to a set of hosts using allocation tagging
Last updated
Was this helpful?
In DuploCloud, allocation tags give you control over where containers and Services are deployed within a Kubernetes cluster. By default, DuploCloud spreads container replicas across available Hosts to balance resource usage. Allocation tags allow you to label Hosts and Services with specific characteristics, capabilities, or preferences, and to "pin" Services to certain Hosts to meet your operational and resource needs. Allocation tags are useful for deployment requirements like using Hosts with specialized resources, meeting compliance standards, or isolating workloads.
For a Service to run on a specific Host, the Host and the Service must have matching allocation tags. Services without allocation tags are deployed on any available Host in the Kubernetes cluster.
Before you assign an allocation tag, review the following:
For Docker-based Services, tag matching is substring-based and case-insensitive. This means a Service tag only needs to appear as part of a Host tag, regardless of case. For example, a Host tagged HighCpu;HighMem
would match a Service tagged highcpu
, but not one tagged highcpu;gpu
unless both substrings are included in the Host tag.
In contrast, Kubernetes-based Services use exact and case-sensitive tag matching. The tag on the Service must exactly match the tag on the Host or Node Pool, including case and spelling. For example, a Service tagged gpu.large
would match a Host tagged gpu.large
, but not Gpu.Large
or gpu-large
.
Kubernetes tags also have character restrictions:
Tags must start and end with an alphanumeric character.
Allowed characters: letters, numbers, hyphens (-
), and periods (.
).
Notes:
If a Service does not have any allocation tag, it may be placed on any Host.
Hosts tagged with specific values can still run untagged Services. For exclusive placement, make sure that every Service in the Tenant has at least one allocation tag.
Assign a tag describing the Host's characteristics or capabilities, such as resource capacity, geographic location, or compliance needs.
In the DuploCloud Portal, navigate to Cloud Services -> Hosts. The Hosts page displays.
Select the Host from the NAME column. If the Host is part of an Auto-Scaling Group (ASG), select the ASG tab and select the correct ASG.
Click the Allocation Tag Edit Icon ( ). The Set Allocation Tag pane displays.
Click Set. The allocation tag you set displays in the heading banner for the Host or ASG.
On the Host or ASG page, select the Metadata tab, and edit or delete the existing allocation tag.
In the Allocation Tag field, enter a tag name following the .
In the DuploCloud Portal, navigate to the Add Service or Edit Service page, and enter a tag name in the Allocation Tag field. See the for character restrictions and tag matching details. When the Service runs, DuploCloud will attempt to select a Host with a matching allocation tag. To pin the Service to run on a specific Host, apply matching allocation tags to the Host and Service.