Enabling default Compute Cluster for existing environments

In case you already have an environment, but would like to have your services to run on the containerized platform enabled by Compute Clusters, you can add the default Compute Cluster to your existing environment.

Required role: EnvironmentAdmin

Before you begin
  • Ensure that the environment has no default Compute Cluster provisioned.
  • Ensure that the environment is started and available.

Using Management Console

  1. Navigate to your environment.
  2. Click Compute Clusters.
    The following message will indicate that Compute Cluster are not enabled for your environment:
  3. Click Enable Compute Clusters.
  4. Provide the necessary networking information for the Kubernetes cluster.
    1. Enable User Defined Routing (UDR) in case public IPs are blocked for egress.In case you enable UDR, you must select the specific worker node subnet where the UDR is configured.
    2. If you need to create a Private Cluster, enable Private Kubernetes Cluster to create a private cluster that blocks all access to the API Server endpoint.
    3. If you do not need to create a Private Cluster, provide the CIDRs to the Kubernetes API Server Authorized IP Ranges field to specify a set of IP ranges that will be allowed to access the Kubernetes API server.
  5. Click Submit.
    You will be redirected to the Compute Clusters tab, where you can track the creation process of the default Compute Cluster.

Using CDP CLI

Run the following command to add the default Compute Cluster to the environment:
cdp environments initialize-aws-compute-cluster 
--environment-name [***ENVIRONMENT NAME***] \
--credential-name [***CREDENTIAL NAME***] \
--region [***REGION***] \
--security-access [***SECURITY CONTROL CONFIGURATIONS***] \
--authentication [***PUBLIC SSH KEY***] \
--log-storage [***STORAGE CONFIGURATION***] \
--enable-compute-cluster \
--compute-cluster-configuration \
privateCluster=false, \
kubeApiAuthorizedIpRanges=[***CIDR1***],[***CIDR2***]
cdp environments initialize-aws-compute-cluster 
--environment-name [***ENVIRONMENT NAME***] \
--credential-name [***CREDENTIAL NAME***] \
--region [***REGION***] \
--security-access [***SECURITY CONTROL CONFIGURATIONS***] \
--authentication [***SSH KEY***] \
--log-storage [***STORAGE CONFIGURATION***] \
--enable-compute-cluster \
--compute-cluster-configuration \
privateCluster=true
The environment will have COMPUTE_CLUSTER_CREATION_IN_PROGRESS status. You can use the following command to check the status of the environment creation, the statusReason field will contain the information about the process:
cdp environments describe-environment --env-name-or-crn [***ENVIRONMENT NAME***]
For more detailed status information about the cluster creation, you can use the following command:
cdp compute list-clusters --env-name-or-crn [***ENVIRONMENT NAME***]