In this topic, you can find the prerequisites required for the Kubernetes cluster deployment.
For Kubernetes cluster deployment, ensure that:
- You must provide a single datastore with the required space for the kubernetes cluster deployment as it does not support multiple datastores.
- The K8s Deployment happens through passwordless communication between the Deployer VM and the VMware Telco Cloud Service Assurance VMs. Below are the two ways to generate SSH key required for passwordless communication. You can either generate the key with an EMPTY passphrase or generate the key with the NON-EMPTY password.
- Generate the key with an EMPTY passphrase:
- Log in to Deployer Host and execute the following command to generate
ssh-key
:Note: When prompted for passphrase, do not provide any passphrase, press enter.[root@wdc-10-214-147-149 ~]# ssh-keygen -t rsa
1. ssh-keygen -t rsa 2. At the prompt Enter file in which to save the key (/root/.ssh/id_rsa): press Enter to accept the default. 3. At the prompt passphrase: press Enter to accept empty passphrase 4.Repeat by pressing enter to accept empty passphrase again.
Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_rsa.pub.The key fingerprint is:SHA256:NouBgxDzAB1vldmBceSSrpBiYus+348nZYI1ykKxl1E [email protected] key's randomart image is:+---[RSA 3072]----+|*....EoB+. || *.o .++. ||. + = o . || + * = . ||+o* * + S ||+o.= + * o || .. . = . ||.. .... ||.oo. o+. |+----[SHA256]-----+[root@wdc-10-214-147-
- Once the
ssh-key
is generated, path of the SSH public key need to specified on the later part of the Kubernetes cluster deployment for passwordless communication:For example:
/root/.ssh/id_rsa.pub
- Log in to Deployer Host and execute the following command to generate
- Generate the key with NON-EMPTY passphrase:
- Log in to Deployer Host and execute the following commands to generate
ssh-key
:[root@wdc-10-214-147-149 ~]# ssh-keygen -t rsa
1. ssh-keygen -t rsa 2. At the prompt Enter file in which to save the key (/root/.ssh/id_rsa): press Enter to accept the default. 3. Enter and repeat a password for the key pair.
Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_rsa.pub.The key fingerprint is:SHA256:NouBgxDzAB1vldmBceSSrpBiYus+348nZYI1ykKxl1E [email protected] key's randomart image is:+---[RSA 3072]----+|*....EoB+. || *.o .++. ||. + = o . || + * = . ||+o* * + S ||+o.= + * o || .. . = . ||.. .... ||.oo. o+. |+----[SHA256]-----+[root@wdc-10-214-147-
- Below command must be executed every time, during any Ansible script execution, in-order to use the Non-EMPTY Passphrase
ssh-key
:Note: The below commands needs to run in the Deployment Container inside the Deployer Host.[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])
Note: Above commands needs to be executed in every session or every time you execute the Ansible scripts with NON-EMPTY passphrase.
- Log in to Deployer Host and execute the following commands to generate
- Generate the key with an EMPTY passphrase: