Last updated
Was this helpful?
Last updated
Was this helpful?
DuploCloud allows an external or an On-Premises Kubernetes (K8s) Cluster to be imported as an Infrastructure that the DuploCloud Platform manages.
The Kubernetes Cluster that needs to be imported should be ready to use and accessible using the kubectl
shell.
Save this YAML code as a file name service-account-admin-setup.yaml.
Run kubectl apply -f service-account-admin-setup.yaml
, creating a new service account with Administrator permissions.
Run kubectl -n kube-system describe secret duplo-admin-token
to fetch the token for DuploCloud to use when importing the cluster.
Before performing this step, Contact DuploCloud Support to enable the configuration that allows the import of an external Kubernetes cluster.
In the DuploCloud Portal, navigate to Administrator -> Infrastructure.
Click Add. The Add Infrastructure page displays.
From the Cloud list box, select On-Premises.
Enter the details of the Kubernetes Cluster:
Kubernetes Cluster Name
Kubernetes Cluster Endpoint
Kubernetes Cluster Certificate Authority Data (For an EKS cluster, this can be copied from the EKS Cluster Overview page from the AWS Console).
Kubernetes Vendor (Enter EKS, as in the example below).
Select the Kubernetes tab to display information about the imported Kubernetes Cluster.
In the DuploCloud Portal, navigate to Administrator -> Tenants.
Click Add. The Create a Tenant pane displays.
Enter the Tenant Name.
Select the Infrastructure name from the Plan list box.
Click Create.
Navigate to Kubernetes -> Nodes. The Nodes page displays.
Click the On-Premises Tab.
Click Add. The Add On-Premesis Instance pane displays.
Select the node from the Kubernetes Node list box.
Supply an Allocation Tag.
Click Add.
Navigate to Kubernetes -> Nodes to view the imported cluster.
An administrator can import an external Kubernetes cluster in the DuploCloud Portal with readonly
access.
Save the following YAML code as service-account-readonly-setup.yaml.
Run kubectl apply -f service-account-readonly-setup.yaml
, creating a new service account with readonly
permission.
Run kubectl -n kube-system describe secret duplo-readonly-token
to fetch the token for DuploCloud to use when importing the cluster.
DuploCloud users with non-administrator access (User role) can only view Kubernetes resources. They cannot add Nodes or create or update any Services in readonly
mode.
Kubernetes Token, which you retrieved when you .
Create a WebServer Service in the DuploCloud portal by selecting OnPrem from the Cloud list box while creating a .
Once the service is created, you should be able to access the , retrieve the , for the service you created.
Follow this step to and the cluster.
Import an external or On-Prem cluster to be managed by DuploCloud