Overview
Search
⌃K
Links

Configuring GCP Services

Configuring GCP Services and related components such as Plans, Tenants, Hosts, and Services

Plans

The DuploCloud Portal comes configured with a default Plan. A Plan configures your Tenants using a set of templates whose parameters are applied to the Tenants in your Infrastructure.

Tenants

To add a Tenant, navigate to Administrator -> Tenant in the DuploCloud Portal and click Add.
Each Tenant is mapped to a Namespace in Kubernetes. For example, if a Tenant is called Analytics in DuploCloud, the Kubernetes Namespace is called duploservices-analytics.
All application components within the Analytics Tenant are placed in the duploservices-analytics namespace. Since nodes cannot be part of a Kubernetes Namespace, DuploCloud creates a tenantname label for all the nodes that are launched within the Tenant. For example, a node launched in the Analytics Tenant is labeledtenantname: duploservices-analytics.
Any Pods that are launched using the DuploCloud UI have an appropriate Kubernetes nodeSelector that ties the Pod to the nodes within the Tenant. If you are deploying via kubectl,ensure that your deployment is using the proper nodeSelector.

Kubectl token and config

DuploCloud provides a way to connect directly to the Cluster namespace using the kubectl token.
  1. 1.
    In the DuploCloud Portal, navigate to DevOps --> Containers --> GKE/Native .
  2. 2.
    Select KubeCtl Token.
  3. 3.
    Enter the following commands:
Connecting directly to the Cluster namespace using the kubectl token.
After entering these commands, kubectl is configured to access the Kubernetes cluster for your Tenant namespace.

Hosts

Once the Tenant is created:
  1. 1.
    In the DuploCloud Portal, navigate to DevOps -> Hosts. The BYOH Hosts page displays.
  2. 2.
    Select the Tenant that you created from the Tenant list box.
  3. 3.
    Click Add.
GCP BYOH Hosts page with GCP-HOST defined

Configure Kubernetes Storage

You can configure the Storage Class and Persistent Volume Claims (PVCs) from the DuploCloud Portal.
  1. 1.
    In the DuploCloud Portal, navigate to DevOps --> Containers --> GKE/Native.
  2. 2.
    Click the K8S Storage tab. The Kubernetes Storage page displays. From this page, you define your Kubernetes Persistent Volume Claims and Storage Classes. The Persistent Volume Claims option is selected by default.
    The Persistent Volume Claims option on the Kubernetes Storage page
  3. 3.
    Click Add. The Add Kubernetes Persistent Volume Claim page displays.
    The Add Kubernetes Persistent Volume Claim page
  4. 4.
    Define the PVC Name, Storage Class Name, Volume Name, Volume Mode, and other details such as volume Access Modes.
  5. 5.
    Click Add.
  6. 6.
    On the Kubernetes Storage page, select the Storage Class option.
    The Storage Class option on the Kubernetes Storage page
  7. 7.
    Click Add. The Add Kubernetes Storage Class page displays.
    The Add Kubernetes Storage Class page
  8. 8.
    Define the Storage Class Name, Provisioner, Reclaim Policy, and Volume Binding Mode. Select other options, such as whether to Allow Volume Expansion.
  9. 9.
    Click Add.
Reference these storage option examples as you create your PVCs and Storage Classes.

Add Services

Docker

You can deploy any native Docker container in a virtual machine (VM) with the DuploCloud platform.
  1. 1.
    In the DuploCloud Portal, select DevOps -> Containers -> GKE/Native from the navigation pane.
  2. 2.
    Click Add. The Add Service page displays.
  3. 3.
    Complete the fields on the page, including Service Name, Docker Image name, and number of Replicas. Use Allocation Tags to deploy the container in a specific set of hosts.
Do not use spaces when creating Service or Docker image names.
The number of Replicas that you define must be less than or equal to the number of hosts in the fleet.
Add Service page

Setting Docker registry credentials

Set Docker credentials:
  1. 1.
    In the DuploCloud Portal, navigate to DevOps --> Containers --> GKE/Native.
  2. 2.
    Click the options menu ( ⁞ ) and select Docker Credentials. The Set Docker registry Creds pane opens.
  3. 3.
    Supply your Docker credentials and click Submit.