Verify the Deployment Status
Verify the deployment of virtual machines:
- Verify whether the deployment of virtual machines is successful:
appdctl show bootNote: Ensure that the services in each node is active. If any service appears asFailed, restart that virtual machine. You might have to redeploy the virtual machine if it is still failing. - Create a three-node cluster:
- Run the following command in the primary node and specify the IP address of the peer nodes:
appdctl cluster init <Node-2-IP> <Node-3-IP> - Run the following command to verify the node status:
Ensure that the output displays theappdctl show cluster microk8s statusRunningstatus astruefor the nodes that are part of the cluster.Sample Output
NODE | ROLE | RUNNING ----------------+-------+--------- 10.0.0.1:19001 | voter | true 10.0.0.2:19001 | voter | true 10.0.0.3:19001 | voter | trueNote: You must re-login to the terminal if the following error appears:Insufficient Permissions to Access Microk8s
- Run the following command in the primary node and specify the IP address of the peer nodes: