Adding node pools
You can create node pools for a hosted cluster by specifying a name, number of replicas, and any additional information, such as an agent label selector.
|
|
Only a single agent namespace is supported for each hosted cluster. As a result, when you add a node pool to a hosted cluster, the node pool must be either from a single |
-
To create a node pool, enter the following information:
$ hcp create nodepool agent \ --cluster-name <hosted_cluster_name> \ --name <nodepool_name> \ --node-count <worker_node_count> \ --agentLabelSelector size=medium-
--cluster-namespecifies your hosted cluster name, for example,my-hosted-cluster. -
--namespecifies the name of your node pool, for example,my-hosted-cluster-extra-cpu. -
--node-countspecifies the worker node count, for example,2. -
--agentLabelSelectoris optional. The node pool uses agents with thesize=mediumlabel.
-
-
Check the status of the node pool by listing
nodepoolresources in theclustersnamespace:$ oc get nodepools --namespace clusters -
Extract the
admin-kubeconfigsecret by entering the following command:$ oc extract -n <hosted_control_plane_namespace> secret/admin-kubeconfig --to=./hostedcluster-secrets --confirmExample outputhostedcluster-secrets/kubeconfig -
After some time, you can check the status of the node pool by entering the following command:
$ oc --kubeconfig ./hostedcluster-secrets get nodes
-
Verify that the number of available node pools match the number of expected node pools by entering this command:
$ oc get nodepools --namespace clusters