lab:kubernetes_app:step_1_-_set_up_the_host
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lab:kubernetes_app:step_1_-_set_up_the_host [2024/01/31 17:14] – added informatoin user | lab:kubernetes_app:step_1_-_set_up_the_host [2024/05/13 18:16] (current) – removed user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Step 1 - Set up the Host ====== | ||
- | You will need to set up a large-ish Ubuntu system. This will be home to the Oracle VirtualBox virtual machines (VM' | ||
- | ====== Install Ubuntu 20.04 Desktop ====== | ||
- | |||
- | // See [[https:// | ||
- | |||
- | It's a good idea to use a " | ||
- | |||
- | ====== Update and Install Packages ====== | ||
- | |||
- | Once installation is complete, follow best practice to upgrade software packages on the system. Open Terminal and enter the commands below. | ||
- | |||
- | <code bash> | ||
- | sudo apt update | ||
- | sudo apt upgrade -y | ||
- | </ | ||
- | |||
- | |||
- | Enable ssh so you can SSH to this system. Open Terminal and enter the commands below. | ||
- | |||
- | <code bash> | ||
- | sudo apt update | ||
- | sudo apt install openssh-server -y | ||
- | </ | ||
- | |||
- | // See [[https:// | ||
- | |||
- | Install Ansible | ||
- | Add repository for Ansible | ||
- | sudo apt-add-repository ppa: | ||
- | Install required packages | ||
- | sudo apt update && sudo apt upgrade -y | ||
- | sudo apt install vim p7zip xorriso ansible python3-passlib -y | ||
- | Create the user ansible and switch to the user (learn more at this link) | ||
- | sudo useradd -m -s /bin/bash ansible | ||
- | sudo passwd ansible | ||
- | su - ansible | ||
- | |||
- | Give user ansible sudo permissions | ||
- | |||
- | From your regular login account all the '' | ||
- | < | ||
- | |||
- | You can new test sudo access for the user '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | For the remainder of the Lab you will be using the '' | ||
- | |||
- | |||
- | |||
- | Create ssh key used to connect to the VMs | ||
- | |||
- | Create the ssh key ansible will use to connect to your VMs | ||
- | |||
- | ssh-keygen -o | ||
- | |||
- | accept default settings and do not enter a passphrase | ||
- | |||
- | Use cat ~/ | ||
- | |||
- | Looks like | ||
- | < | ||
- | AAAAB3NzaC1yc2EAAAADAQABAAABgQDKwEYxgppj+um+/ | ||
- | |||
- | Save this key - you will use it when you create the custom Ubuntu ISO | ||
- | |||
- | install oracle virtualbox using ansible | ||
- | |||
- | Follow steps here: Install Oracle VirtualBox using Ansible | ||
- | |||
- | Note: There are many references out there if you don't want to use Ansible to install VirtualBox (e.g., https:// | ||
- | |||
- | ====== Next Step ====== | ||
- | Continue to .... | ||
- | |||
- | Or back to [[lab: |
lab/kubernetes_app/step_1_-_set_up_the_host.1706721242.txt.gz · Last modified: 2024/01/31 17:14 by user