Editing configurations of a remote Kubernetes cluster
You can edit the kubeconfig file, address, namespace, name, or ingress details of the remote Kubernetes cluster that you added to a team space on HCL OneTest™ Server.
Before you begin
- Read and completed the tasks mentioned in Considerations for using a remote Kubernetes cluster, if you want to use a remote Kubernetes cluster as a location to run the test.
- Registered a remote Kubernetes cluster with your team space on HCL OneTest™ Server. See Registering a remote Kubernetes cluster.
- Ensured that you are assigned a role as a Member or Project Creator in the team space. See Managing members and their roles in a team space.
- Ensured that you are assigned a role as a Project Owner or Tester in the project. See Managing access to the server projects.
Procedure
-
Log in to HCL OneTest™ Server.
The team space that contains your project is displayed.
-
Click
in the navigation pane of the team space.
The Agents and Intercepts page is displayed.
You can view the agents, intercepts, Dockers, or clusters that are registered with the team space on HCL OneTest™ Server.
-
You can view the clusters that you own in any of the following ways:
- Search for the cluster by entering the name of the cluster in the
Search field.Note: You can enter either the full name or any text that is in the name. The search is enabled for case-sensitive text that you can enter.
- Sort the Type column to sort the items, and then identify the cluster by the name or owner.
- Sort the Agents column to sort the items, and then identify the cluster by the name or owner.
You can view the following details about the clusters that are in the team space:- The projects in the team space to which the cluster is added, are displayed in the Projects column.
- The status of the cluster is displayed in the
Status column.Note: You can add clusters that are in the Ready state to your project, and then use them as locations to run tests.
- Search for the cluster by entering the name of the cluster in the
Search field.
-
Identify the cluster that you want to modify the configurations, and then click
the Edit icon .
Note: The icon is displayed in the Actions column in the row of the cluster only if you own the cluster.
The Update cluster dialog is displayed.
-
Perform the following steps to change the kubeconfig
file:
-
Perform the following steps to change the namespace or name of the
cluster:
- Edit or change the namespace of the cluster that you want to use, in the Namespace field.
- Edit or change the name of the cluster in the Name field.
- Click Next.
-
Perform the following steps to change the ingress details of the cluster:
-
Optionally, perform the following steps to edit or change the code snippets for
nodeSelectors and tolerations, if
applicable for the remote cluster:
- Enter the code snippet for nodeSelectors in a yaml format in the Node selectors field.
- Enter the code snippet for tolerations in a yaml format in the Tolerations field.
-
Click Update.
The remote cluster is displayed with the updated configurations.Note: The projects that are associated with the cluster are displayed in the Projects column and you need not add the cluster to the same project again.
Results
You have updated an existing remote cluster with the changed configurations.
What to do next
You can select the updated cluster as an alternate location to run the test assets or resources that are in your project while you configure a run from the Execution page.