Execute the Kubernetes Cluster
Installation Command Inside The Deployment Container
- Execute the prepare command inside the Deployment Container.[root@wdc-10-214-147-149 ~]# eval "$(ssh-agent -s)" Agent pid 3112829 [root@wdc-10-214-147-149 ~]# ssh-add ~/.ssh/id_rsa Enter passphrase for /root/.ssh/id_rsa: <==Enter the NON-EMPTY Passphrase that is being provided during the NON-EMPTY ssh-key Generation process Identity added: /root/.ssh/id_rsa ([email protected])cd /root/k8s-installer/ export ANSIBLE_CONFIG=/root/k8s-installer/scripts/ansible/ansible.cfg ansible-playbook scripts/ansible/prepare.yml -e @scripts/ansible/vars.yml --become
- If you have used Non-Empty Passphrase for SSH Key generation (required for passwordless SSH communication), then you must execute the following commands inside the Deployment Container, before running the Ansible script.
- There will be some fatal messages, which will be displayed on the console and ignored by the Ansible script during execution. These messages does not have any functional impact and can be safely ignored.
- Execute the Kubernetes Cluster installation command inside the Deployment Container.cd /root/k8s-installer/ ansible-playbook -i inventory/<your-cluster-name>/hosts.yml scripts/ansible/ deploy_k8s.yml -u <your-SSH-username> --become -e @scripts/ansible/internal_vars.yml -e @scripts/ansible/vars.yml --skip-tags check_VM_local_space
- If theVMware vCenterpassword is commented in thevars.yamlfile, then you will be prompted to provide the vCenter password when the following Ansible Script is executed.
- There will be some fatal messages, which will be displayed on the console and ignored by the Ansible script during execution. These messages does not have any functional impact and can be safely ignored.
- Ensure that the Kubernetes installation is successful and the below successful message is displayed on the console.k8s Cluster Deployment successful.
- Verify the node status after the Kubernetes cluster deployment.kubectl get nodesEnsure that all the nodes are in ready state before starting the VMware Telco Cloud Service Assurance upgrade.
- Verify the Harbor pods are up and running.kubectl get pods | grep harbor
- After the Kubernetes Cluster (CaaS) upgrade is complete, you must upgradeVMware Telco Cloud Service Assurance. For more information, see the Upgrade VMware Telco Cloud Service Assurance on Virtual Machines Based Deployment section.
- If the Kubernetes deployment fails, while waiting for thenodelocaldnsPODs to come up then Kubernetes installation script should be re-run. The Kubernetes deployment will resume from that point.
- To apply an update to one or many components of the Kubernetes Cluster (CaaS) deployment. The update could be a simple configuration change like changing the location of a log file or a major upgrade of the Load Balancer, Storage interfaces or the Harbor container registry. For more information, see Patching the CaaS Deployment Using the TCX CaaS Installer section in theVMware Telco Cloud Service Assurance Troubleshooting Guide.