This task explains how to grow a stack with a new domain and new hosts.
To grow a stack (new domain):
- Establish a CLI session on the Bare Metal Orchestrator VM and log in. For high availability configurations, establish a CLI session using the virtual IP (VIP) of the Load Balancers for the Bare Metal Orchestrator cluster.
- Add the new servers in Bare Metal Orchestrator using the sample esxi-install.yaml located at ~/samples/stacks/tcp. Update it with the required details (IP address, username, password, VLAN, OS install volume, and network information).
- Run the following command:
bmo create server -f server1.yaml
- Wait for the servers to reach "Ready" state on the ESXi installation process.
- Update the TCPConfig.json config file used for the original stack deployment by adding the new domain configuration to it. Upload the updated file to the web server.
- Update the AddHosts.json config file used for the original stack deployment by adding the new hosts to it. Upload the updated file to the web server.
- Update the stack resource to grow the stack. Do one of the following:
- Open the stack YAML file used to create the stack originally and add the new host details under "serverForDeployment[]". Run this command to update the stack:
bmo edit stack -f dell_stack.yaml
- Run the following command and add the new host under "serverForDeployment[]":
bmo edit stack tcp-stack-1
- Open the stack YAML file used to create the stack originally and add the new host details under "serverForDeployment[]". Run this command to update the stack:
- Monitor the progress of the grow stack operation in each domain. Run the following command:
bmo describe stack tcp-stack-1
Once the grow operation on the stack is completed, the stack state shows as "Ready".