installer clusterremovenode
Initiates the cluster remove node operation.
Syntax
- CLI
-
maprcli installer clusterremovenode usage: cluster_remove_node.py [-h] [-j CLUSTER_JSON] [-f CLUSTER_JSON_FILE] [-y CLUSTER_YAML_FILE] options: -h, --help -j CLUSTER_JSON, --cluster_json CLUSTER_JSON -f CLUSTER_JSON_FILE, --cluster_json_file CLUSTER_JSON_FILE -y CLUSTER_YAML_FILE, --cluster_yaml_file CLUSTER_YAML_FILE
Parameters
Parameter |
Description |
---|---|
-j | --cluster_json |
URL encoded JSON string describing the cluster name, type, and credentials, specific to the target provider. |
-f | --cluster_json_file |
Path to JSON file describing the cluster name, type, and credentials, specific to the target provider. |
-y | --cluster_yaml_file |
Path to YAML file describing the cluster name, type, and credentials, specific to the target provider. |
For example, here is a .yml
input payload for removing a node:
onprem_remove_node_payload.yml
deploy_target: OnPrem
cluster_name: mydfcluster
// Hostname of the host to remove
remove_host: ip1.domain.in
onpremconfig:
// SSH login credentials for the node to remove
ssh_username: rocky
ssh_password: password
Cluster remove node example
The following example scales down a cluster by removing nodes as specified in the payload file (see the previous example):
- CLI
-
maprcli installer clusterremovenode -y examples/mcs_payloads/onprem_remove_node_payload.yml -json