Pairing the Primary and the Worker Node

Section 1 . Enable SSH for the Primary Node
  1. From the ControlCenter Desktop
    • Launch Google Chrome Site1 profile
    • In the address Bar
      • enter https://vcenter-01a.euc-livefire.com
    • Under Getting started page of vCenter
    • Click Launch VSPHERE CLIENT (HTML 5)
  1. In the vSphere Client
    • Expand vcenter-01a.euc-livefire.com > Region01A > Bangalore
    • Locate the primary Cloud Connector: HznCCxx-01a
      • Where xx is the attendee Identifier. In our example it is 22
    • From the Summary Tab
      • LAUNCH WEB CONSOLE
      • The Console Session Opens in a new tab.
  1. In Cloud Connector Console
    • Login user: root
    • Password: VMware1!
  1. In Cloud Connector Console, activate ccadmin
    • Type passwd ccadmin
      • using your keyboard press enter
    • New Password: VMware1!
      • using your keyboard  press enter
    • Retype new password: VMware1!
      • using your keyboard  press enter
  1. In Cloud Connector Console
    • Execute the following command
      • /opt/vmware/bin/configure-adapter.py --sshEnable
Section 2: Enable  SSH for the Worker Node
  1. Enable SSH for Newly Deployed Worker Node
    • From the vSphere Client
      • Locate the newly deployed WorkerNode : HznCCxx-01b
        • Where xx is the attendee Identifier. In our example it is 22
        • From the Summary Tab
          • LAUNCH WEB CONSOLE
            • The Console Session Opens in a new tab
  1. In the Worker Node Connector Console (HznCC22-01b)
    • Login user: root
    • Password: VMware1!
  1. In Cloud Connector Console, activate ccadmin
    • Type passwd ccadmin
      • with your keyboard
        • press enter
      • New Password: VMware1!
      • with your keyboard,
        • press enter
    • Retype new password: VMware1!
      • with your keyboard,
        • press enter
  1. From Cloud Connector Console
    • Execute the following command
      • /opt/vmware/bin/configure-adapter.py --sshEnable
Section 3: Pairing the Primary and Worker Node

To Configure Worker node, we need to SSH to both the Primary and Worker Nodes and run commands to pair them together

  1. Login securely via SSH with CCADMIN on Primary Node
    • On ControlCenter Desktop
      • Right Click on Start Menu open Command Prompt (Admin)
      • Inside the Command Prompt
        • Type ssh [email protected]
          • and press enter
          • When prompted Are you sure you want to continue connecting (yes/no)? Type yes
            • Once logged in to a ssh session of primary node, switch to root account
              • Type sudo -i
                • In the password prompt,
                  • Type VMware1
                    • press enter
  1. Inside the SSH session of the Primary node
    • Type /opt/vmware/sbin/primary-cluster-config.sh -as 192.168.110.14
      • with your keyboard press enter
      • When  prompted for Are you sure you want to continue connecting (yes/no)? Type yes
        • When prompted for the Worker node (192.168.110.14 ) password
          • Type VMware1!
            • press enter
            • After the command is executed, at the end of the ssh session, it will display a new command which needs to be executed on Worker node
              • Copy the Command and Save it on a notepad or notepad++ on the Control Center Desktop

 

  1. Login securely via SSH with CCADMIN on Worker Node
    • On ControlCenter Desktop
      • Right Click on Start Menu open Command Prompt (Admin)
      • Inside the Command Prompt
        • Type ssh [email protected]
          • and press Enter
          • When prompted Are you sure you want to continue connecting (yes/no)?
            • Type yes
            • Once logged in to a ssh session of Worker node, switch to root account
              • Type sudo -i
                • In the password prompt,
                  • Type VMware1!
                    • press Enter
  1. Inside the SSH session of the Worker node
    • Copy and paste the command from the Step 2 which was saved on Notepad or Notepad ++
    • For example
      • /opt/vmware/sbin/worker-cluster-config.sh -a 192.168.110.12 jwdtsm.3xqqgeinm5kgc2kd b23a9a1059f507cac41cfecf1f3f3b536f41d93e68c9632f3363871fa255f38c
        • Once done, the Worker Node configuration is complete
  1. Inside the SSH session of the Worker node
    • type sudo -i
      • with your keyboard
        • select Enter
    • type kubectl get pods -A
      • with your keyboard
        • select Enter
    • type kubectl get nodes
      • with your keyboard
        • select Enter
  1. Switch to your Primary Node (192.168.110.12) to verify  the configuration
    • Run the following Commands
      • Type kubectl get nodes
        • with your keyboard
          • select Enter
      • Type kubectl get pods -A  
        • with your keyboard
          • select Enter

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.