Go back

Setup and installation of 'KubeSphere for Cloud-Native Scalable DevOps' on AWS

This section describes how to launch and connect to KubeSphere for Cloud-Native Scalable DevOps on Amazon Web Services (AWS).

  1. Open KubeSphere for Cloud-Native Scalable DevOps VM listing on AWS marketplace

/img/aws/kubesphere/marketplace.png

  1. Click on View Purchase option.
  • Login with your credentials and follow the instruction.
  • Subscribe to the product and click on Continue to configuration button.
  • Select a Region where you want to launch the VM(such as US East (N.Virginia))

/img/aws/kubesphere/region.png

  • Click on Continue to Launch Button.
  • Choose Action: You can launch it through EC2 or from Website.(Let’s choose Launch from website)

/img/aws/kubesphere/launch.png

  • Optionally change the EC2 instance type. (This defaults to t2.large instance type, 2 vCPUs and 8 GB RAM.)
  • Optionally change the network name and subnetwork names.

/img/aws/minikube/vpc.png

  • Select the Security Group. Be sure that whichever Security Group you specify have ports 22 (for ssh), 3389 (for RDP), 80 (for HTTP) and 443 (for HTTPS) exposed. Or you can create the new SG by clicking on “Create New Based On Seller Settings” button. Provide the name and description and save the SG for this instance.

/img/aws/kubesphere/create-new-sg.png

/img/aws/kubesphere/SG.png

  • Be sure to download the key-pair which is available by default, or you can create the new key-pair and download it. /img/aws/minikube/key-pair.png

  • Click on Launch..

  • KubeSphere for Cloud-Native Scalable DevOps will begin deploying.

  1. A summary page displays. To see this instance on EC2 Console click on EC2 Console link.

/img/aws/kubesphere/deployed.png

  1. On the EC2 Console page, instance is up and running. To connect to this instance through putty, copy the IPv4 Public IP Address

/img/aws/kubesphere/public-ip.png

  1. Open putty, paste the IP address and browse your private key you downloaded while deploying the VM, by going to **SSH->Auth->Credentials **, click on Open. Enter ubuntu as userid

/img/aws/desktop-linux/putty-01.png

/img/aws/nvidia-aiml/putty-02.png

/img/aws/kubesphere/ssh-login.png

  1. KubeSphere is being installed and configured in the background. This process may take a few minutes. You can monitor the installation progress by running the command below in your terminal.
tail -f /var/log/cloud-init-output.log

/img/gcp/kubesphere/monitor-peronce-with-tail.png

  1. You will see following messages in the logs. Keep monitoring this process.
   ### STARTED EXECUTING PER-ONCE SCRIPT ####
   ### INSTALLING KUBESPHERE. IT WILL TAKE FEW MINUTES TO COMPLETE ###

/img/gcp/kubesphere/peronce-started.png

“Please wait for installation to complete »—> "

/img/gcp/kubesphere/peronce-kubesphere-in-progress.png

  1. Once installation is completed, you will see below messages. System will reboot after this and your SSH session will get disconnected.
#### KUBESPHERE INSTALLED SUCCESSFULLY ####
#### COMPLETED EXECUTING PER-ONCE SCRIPT ####
#### REBOOTING VM NOW ###

/img/gcp/kubesphere/peronce-completed.png

  1. Connect again via putty with ubuntu username, change the password for ubuntu user using below command
sudo passwd ubuntu

/img/aws/desktop-linux-ubuntu2404/ssh.png

  1. Now the password for ubuntu user is set, you can connect to the VM’s desktop environment from any local Windows Machine using RDP protocol or Linux Machine using Remmina.

From your local windows machine, goto “start” menu, in the search box type and select “Remote desktop connection”. In the “Remote Desktop connection” wizard, copy the public IP address and click connect

/img/aws/desktop-linux/rdp.png

  1. This will connect you to the VM’s desktop environment. Provide the username (e.g “ubuntu”) and the password set in the above “Reset password” step to authenticate. Click OK

/img/aws/desktop-linux/rdp-login.png

  1. Now you are connected to the out of box KubeSphere for Cloud-Native Scalable DevOps VM’s desktop environment via Windows Machine.

/img/azure/minikube/rdp-desktop.png

  1. To connect using RDP via Linux machine, first note the external IP of the VM from VM details page,then from your local Linux machine, goto menu, in the search box type and select “Remmina”.

Note: If you don’t have Remmina installed on your Linux machine, first Install Remmina as per your linux distribution.

/img/gcp/common/remmina-search.png

  1. In the “Remmina Remote Desktop Client” wizard, select the RDP option from dropdown and paste the external ip and click enter.

/img/gcp/common/remmina-external-ip.png

  1. This will connect you to the VM’s desktop environment. Provide “ubuntu” as the userid and the password set in above reset password step to authenticate. Click OK

/img/gcp/common/remmina-rdp-login.png

  1. Now you are connected to out of box KubeSphere for Cloud-Native Scalable DevOps VM’s desktop environment via Linux machine.

/img/azure/minikube/rdp-desktop.png

  1. To connect to KubeSphere UI, copy the Public IP of the VM and paste it in your Browser. Hit enter. Browser warning will come up. Click on advance, accept the risk and continue to login page.

/img/gcp/kubesphere/browser-warning.png

Note: If you see 502 Bad Gateway error message in your browser then wait for few minutes (10-15 minutes) and refresh the web browser.

/img/azure/kubesphere/bad-gateway-error.png

  1. On KubeSphere Login page, login with below credentials. On Next page, update your password.

    Usernam: admin

    Password: P@88w0rd

/img/gcp/kubesphere/kubesphere-ui.png

/img/gcp/kubesphere/update-password.png

  1. Or you can update it later from inside the User Interface. For that, click on “Change Password later” option. It will take you to the KubeSphere dashboard. Click on Admin dropdown from top right corner and select User Settings. On this page, select Password Settings from left pane and update your password. Once done click on Tick at the bottom as shown below.

/img/gcp/kubesphere/admin-settings.png /img/gcp/kubesphere/update-password-after-login.png

  1. Relogin with your new password.

/img/gcp/kubesphere/kubesphere-ui.png



For more information, please visit KubeSphere for Cloud-Native Scalable DevOps Documentation Page

Go back