Shared Hosts
Last updated
Was this helpful?
Last updated
Was this helpful?
Shared Hosts allow workloads to run on the same set of virtual machines (VMs), making better use of resources across multiple Tenants. DuploCloud supports Services, Jobs, and CronJobs on Shared Hosts in Azure, providing flexibility for running long-running services, batch jobs, and scheduled tasks.
DuploCloud supports Shared Hosts for:
Services
Jobs
CronJobs
To enable Host sharing, configure one Tenant to share its Hosts, and another Tenant to run K8s Pods on any Host.
In the DuploCloud Portal, go to Administrator → Tenant.
From the Tenant list box, select the Tenant that will share its Host.
Click the Settings tab.
Click Add. The Add Tenant Feature pane displays.
From the Select Feature list, select Allow hosts to run K8S pods from other tenants.
Select Enable, then click Add. This Tenant's Hosts (Azure VMs) can now run Pods from other Tenants.
In the DuploCloud Portal, go to Administrator → Tenant.
Select the Tenant that will run Pods on the shared Host.
Click the Settings tab.
Click Add. The Add Tenant Feature pane displays.
From the Select Feature list, select Enable option to run K8S pods on any host.
Select Enable, then click Add. This Tenant can now run Pods on other Tenant's Hosts.
After configuring Tenant settings to allow Host sharing, create the resources you want to run on the Shared Hosts.
From the Tenant list, select the Tenant that will run Pods on the Shared Host.
Go to Kubernetes → Services.
Click Add. The Add Service page displays.
Fill in the Service Name, Cloud, Platform, and Docker Image fields. Click Next.
Enable Run on Any Host.
Click Create. A Service running on the shared Host is created.
Before creating a Kubernetes Job or CronJob to run on a Shared Host, configure Tenant settings to allow Host sharing.
Once Host sharing is enabled:
Follow the steps in the DuploCloud documentation to create a Kubernetes Job or create a Kubernetes CronJob.
On the Add Kubernetes Job or Add Kubernetes CronJob page, enable the Run on Any Host option.
Click Create to deploy the Job or CronJob on a Shared Host.