Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Connect to the Cluster namespace using the kubectl token.
DuploCloud provides a way to connect directly to the Cluster namespace using the kubectl
token.
See kubectl Setup for available options.
Enable Azure Kubernetes Service (AKS) to connect with Azure
Once your Infrastructure and Plan have been created, the final step before creating a Tenant is to enable Azure Kubernetes Service (AKS) to connect with Azure cloud management.
In the DuploCloud Portal, navigate to Administrator -> Infrastructure.
Select the Infrastructure that you created from the NAME column.
Select the Kubernetes tab. The following message displays: Kubernetes cluster is not yet enabled. Click Here to enable the Kubernetes Cluster.
Click on the Click Here hyperlink. The Configure AKS Cluster pane displays.
In the Cluster name field, specify a name for your cluster.
Select your node VM size from the Node VM Size list box.
From the AKS Version item list, select your AKS version.
In the Cluster Type item list, select Public or Private.
Optionally, select Advanced Options to specify your network plugin (Azure or Kubenet), K8s resource group field, and outbound connectivity source (Load Balancer or User Defined Routing).
Click Create to enable AKS for your Infrastructure.
DuploCloud begins creating and configuring an AKS cluster using Kubernetes. You receive an alert message when the Infrastructure has been updated.
It may take some time to configure the cluster. The Kubernetes card on the Infrastructure page shows Enabled when the cluster is complete. You can also monitor progress using the Kubernetes tab.
Using DuploCloud Tenants for Azure
In Azure, Microsoft cloud features such as Azure resource groups, Azure managed identity, Azure application security groups (ASG), KMS keys, and Kubernetes Namespaces are exposed in Tenants which reference their configurations.
For more information about DuploCloud Tenants, see the Tenants topic in the Getting Started with DuploCloud section.
Navigate to Administrator -> Tenant in the DuploCloud Portal and click Add. The Create a Tenant pane displays.
In the Name field, enter a name for the Tenant. Choose unique names that are not substrings of one another, for example, if you have a Tenant named dev
, you cannot create another named dev2
. We recommend using distinct numerical suffixes like dev01
and dev02
.
In the Plan list box, select the Plan to associate the Tenant with.
Click Create. The Tenant is created.
Configure settings for all new Tenants under a Plan
You can configure settings to apply to all new Tenants under a Plan using the Config tab. Tenant Config settings will not apply to Tenants created under the Plan before the settings were configured.
From the DuploCloud portal, navigate to Administrator -> Plan.
Click on the Plan you want to configure settings under in the NAME column.
Select the Config tab.
Click Add. The Add Config pane displays.
From the Config Type field, select TenantConfig.
In the Name field, enter the setting that you would like to apply to new Tenants under this Plan. (In the example, the enable_alerting setting is entered.)
In the Value field, enter True.
Click Submit. The setting entered in the Name field (enable alerting in the example) will apply to all new Tenants added under the Plan.
You can check that the Tenant Config settings are enabled for new Tenants on the Tenants details page, under the Settings tab.
From the DuploCloud portal, navigate to Administrator -> Tenants.
From the NAME column, select a Tenant that was added after the Tenant Config setting was enabled.
Click on the Settings tab.
Check that the configured setting is listed in the NAME column. (Enable Alerting in the example.)
In DuploCloud, an Infrastructure maps one-to-one to a VPC in a specified region. It also maps to an Azure Managed Kubernetes Service cluster for container orchestration. Up to one instance (0 or 1) of an AKS is supported for each DuploCloud Infrastructure.
Select Administrator -> Infrastructure from the navigation menu.
Click Add.
In the Name field, enter a name for the Infrastructure.
From the Account list box, select your account number.
In the VNET CIDR field, enter the VNET CIDR.
From the Cloud list box, select Azure.
Complete the remaining fields on the Add Infrastructure form.
Click Create. The Infrastructure is created and is listed on the Infrastructure page. DuploCloud automatically creates a Plan (with the same Infrastructure name) with the Infrastructure configuration.
Cloud providers limit the number of Infrastructures that can run in each region. If you have completed the steps to create an Infrastructure and it doesn't show a Status of Complete, try selecting a different region.
To enable an AKS cluster for Azure, follow these steps.
You can encrypt your Azure storage account by configuring a Key/Value pair in the Infrastructure.
Autoscaling with Azure Agent Pools and Kubernetes
DuploCloud supports various ways to scale the workload, depending on the underlying Azure services being used.
Upgrade the Azure Kubernetes Service (AKS) version
Microsoft frequently updates the version of AKS based on new features that are available in the Kubernetes platform.
DuploCloud pushes AKS upgrades to the DuploCloud Portal code, but we request that you contact the DuploCloud Support staff on your Slack channel or by email when upgrading, for the moment.
In future releases, this upgrade will be available for customers to install.
Manage costs for resources
The DuploCloud Portal allows you to view and manage resource usage costs. As an administrator, you can view your company's billing data by month, week, or Tenant. Configure billing alerts, explore historical resource costs and view DuploCloud license usage information. Non-administrator users can view billing data for Tenants they can access by viewing billing data for a selected Tenant.
Encrypt an Azure storage account
Secure your Azure cloud data by enabling Azure storage encryption for data at rest, using Encryption Key Management. Configuring this feature for your DuploCloud Infrastructure enables you to specify customer-managed keys or customer-provided keys for your existing Blob storage.
In the DuploCloud Portal, navigate to Administrator -> System Settings.
Click the System Config tab.
In the System Configs area, click Add. The Add Config pane displays.
From the Config Type list box, select Flags.
From the Key list box, select Enable Storage Account Infra Encryption.
From the Value list box, select true.
Click Submit.
The Key/Value pair configuration is displayed in the System Configs area.
Dynamically configure Azure agent pools for optimum performance
When you use autoscaling for Azure agent pools, you allow DuploCloud to manage your application's capacity requirements within your limits.
In the DuploCloud Portal, create an Azure agent pool with the Enable Autoscaling option selected. Each agent pool contains nodes backed by the virtual host machines.
Backup your hosts (VMs)
Create Virtual Machine (VM) snapshots in the DuploCloud Portal.
In the DuploCloud Portal, navigate to Cloud Services -> Hosts. The Hosts page displays.
Select the Host you want to backup from the Name column.
Click Actions and select Snapshot.
Once you take a VM Snapshot, the snapshot displays as an available Image Id when you create a Host.
Using Hosts in DuploCloud
Once we have the Infrastructure (Networking, Kubernetes cluster, and other common configurations) and an environment (Tenant) set up, the next step is to create VMs. These could be meant for:
AKS Worker Nodes
Worker Nodes (Docker Hosts) if built-in container orchestration is used.
Regular nodes that are not part of any container orchestration, where a user manually connects and installs applications. For example, when using a Microsoft SQL Server in a VM, when running an IIS application and in other custom use cases.
For ease of use, create a link to the Azure Console from a Host page Action Menu.
Add a Virtual Machine Host. DuploCloud AWS supports Host (Azure Host) and BYOH (Bring Your Own Host) types. Use BYOH for any VM that is not an Azure Host.
Ensure you have selected the appropriate Tenant from the Tenant list box at the top of the DuploCloud Portal.
In the DuploCloud Portal, navigate to Cloud Services -> Hosts.
Select the tab that corresponds to the type of Host you want to create (HOST or BYOH), and click Add.
In the Friendly Name field, specify a unique name for the Host.
Define the Subnet, select the Instance Type, enter your Username and Password, and specify whether to enable a Public IP.
Optionally, enter a computer name in Computer Name field in the Advanced Options.
In the Encryption list box, select Off or On.
Optionally, select the Disk Controller Type in the Advanced Options. The disk controller type is set to SCSI
by default. If you select NVME
, specify the supported instance size.
Optionally, select Standard or Trusted Launch in the Security Type field. If you select Trusted Launch, enable or disable Enable Secure Boot and vTPM.
Click Add.
It is not necessary to explicitly define Hosts. Instead, you can use Azure Agent Pools and VM Scale Sets.
To view your Hosts (VMs), navigate to Cloud Services -> Hosts and select the Host tab.
See Kubernetes StorageClass and PVC.
While lower-level details such as IAM roles and security groups are abstracted, deriving instead from the Tenant, only the most application-centric inputs are required to set up Hosts.
Most of these inputs are optional and some are available as list box selections, set by the administrator in the Plan (for example, Image ID, in Host Advanced Options).
There are two additional parameters
Fleet: This is applicable if the VM is to be used as a host for container orchestration by the platform. The choices are:
Linux Docker/Native: To be used for hosting Linux containers using the Built-in Container orchestration.
Docker Windows: To be used for hosting Windows containers using the Built-in Container orchestration.
None: To be used for non-Container Orchestration purposes and contents inside the VM are self-managed by the user.
Allocation Tags (Optional): If the VM is used for containers, you can optionally set a label on the VM. This label is specified during Docker application deployment to ensure that the application containers are pinned to a specific set of nodes, giving you the ability to split a tenant further into separate pools of servers and deploy applications on them.
If a VM is used for container orchestration, ensure that the Image ID corresponds to the Image in the container. Any name that begins with Duplo is an image that DuploCloud generates for Built-in container orchestration
Manage Tenant expiry settings in the DuploCloud Portal
In the DuploCloud Portal, configure an expiration time for a Tenant. At the set expiration time, the Tenant and associated resources are deleted.
In the DuploCloud Portal, navigate to Administrator -> Tenants. The Tenants page displays.
From the Name column, select the Tenant for which you want to configure an expiration time.
From the Actions list box, select Set Tenant Expiration. The Tenant - Set Tenant Expiration pane displays.
Select the date and time (using your local time zone) when you want the Tenant to expire.
Click Set. At the configured day and time, the Tenant and associated resources will be deleted.
The Set Tenant Expiration option is not available for Default or Compliance Tenants.
All the activity in the DuploCloud is logged which can be used for auditing. All the logs are saved into Elasticsearch and can be visualized in Kibana. The URL for the Kibana is available under Diagnostics.
The Elasticsearch & Kibana will be sitting inside the VPC and cannot be accessed from outside. Connect to the VPN and access these URL.
Checking Faults and Alerts in the DuploCloud Portal
Faults that happen in the system be it Infrastructure creation, Container deployments, or Application health checks can be tracked in the DuploCloud portal under Faults Menu.
You can look at Tenant specific faults under Observability -> Faults or all the faults in the system under Administrator -> Faults. In addition to notifying you about the faults, DuploCloud integrates with Sentry, which will send an Email alert for the fault and act as a single place to look at all the events.
You can create Azure alerts for the resources from the DuploCloud portal. The supported resource has Alerts Tab. Click on Add. Metrics are listed as per the resource. Select the required Threshold and configure the Alerts.
Alerts can also be configured from the Observability -> Alerts option.
When the alert Threshold is crossed, a Fault is generated in the DuploCloud portal.
In addition to the visibility of faults in the UI, DuploCloud also supports sending these notifications to the following systems:
Sentry
PagerDuty
NewRelic
AWS WorkDocs
OpsGenie
Refer to the link here for the detailed configuration.
Use Cases supported for DuploCloud Azure
Topics in this section are covered in the order of typical usage. Use cases that are foundational to DuploCloud such as Infrastructure, Tenant, and Hosts are listed at the beginning of this section; while supporting use cases such as Logs, Metrics, and Faults and alerts appear near the end.
Metrics of the resources created/managed in DuploCloud can be tracked under Observability -> Metrics.
Separate tabs are available to view the metrics resource type wise.
Grant AIM permissions to view billing data in Azure
To enable the billing feature in the Azure Console:
In the Azure Console, select the host (VM) beginning with DuploMaster.
In the Azure Console, navigate to Security -> Identity.
Click Azure role assignments. The Azure role assignments page displays.
Click Add role assignment (Preview) to add the Billing Reader role.
Restart the DuploMaster VM to make the Billing Reader role available.
Verify that Duplo.BillingService is running. If it is, the billing feature is enabled.
Manage costs for billing and resources
Usage costs for resources can be viewed and managed in the DuploCloud Portal, by month or week, and by Tenant. You can also explore historical resource costs.
To view the Billing page for Azure in the DuploCloud Portal, click Administrator -> Billing.
You can view usage by:
Time
Select the Spend by Month tab and click More Details to display monthly and weekly spending options.
Tenant
Select the Spend by Tenant tab.
Create a link to the Azure Portal from DuploCloud
Creating a direct link to the Azure Portal from your DuploCloud Infrastructure saves your time when you work with DuploCloud Azure resources. Instead of toggling between the DuploCloud Portal and the Microsoft Azure Portal, get instant access to the Azure Portal from DuploCloud.
Failure to follow these steps when creating a link to the Azure Portal from the DuploCloud Portal results in the error message:
Error while fetching Azure portal link: Portal url config does not exist
In the DuploCloud Portal, navigate to Administrator -> Infrastructure. The Infrastructure page displays.
From the Name column, select the Infrastructure for which you want to add a link to the Azure Console.
Click the Metadata tab.
Click Add. The Add Infrastructure Tag pane displays.
In the Key field, enter AzurePortalLink.
In the Value field, enter the URL for your Azure Portal.
Click Create.
The Value in the example above is DuploCloud's internal Azure Portal link.
In the DuploCloud Portal, navigate to Cloud Services -> Hosts. The Hosts page displays.
From the Name column, select the Host you are working with.
From the Actions menu, select Connect -> Azure Portal.
After you to an Infrastructure, access the Azure Console from the DuploCloud Portal in the Actions menu for Azure Hosts.