# Hardware and Software Requirements for Edge Conductor
# Install and Setup Ubuntu 22.04
For temporary network configurations, you can use the ip command which is also found on most other GNU/Linux operating systems.
~]$ sudo ip addr add 10.102.66.200/24 dev enp0s25 | |
~]$ ip link set dev enp0s25 up | |
~]$ ip link set dev enp0s25 down | |
~]$ sudo ip route add default via 10.102.66.1 | |
~]$ cat >> /etc/resolv.conf << EOF | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 | |
EOF |
To configure your system to use static address assignment, create a netplan configuration in the file /etc/netplan/99_config.yaml .
~]$ sudo cat > /etc/netplan/99_config.yaml << EOF | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
eth0: | |
addresses: | |
- 10.10.10.2/24 | |
routes: | |
- to: default | |
via: 10.10.10.1 | |
nameservers: | |
search: [mydomain, otherdomain] | |
addresses: [10.10.10.1, 1.1.1.1] | |
EOF | |
~]$ sudo netplan apply |
Install make package.
sudo apt install make |
Install docker packages.
# Uninstall old versions: | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
# Install the Docker packages: | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
# Manage Docker as a non-root user: | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
newgrp docker | |
docker run hello-world |
Install kubectl package.
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" | |
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | |
sudo apt-get update | |
# apt-transport-https may be a dummy package; if so, you can skip that package | |
sudo apt-get install -y apt-transport-https ca-certificates curl | |
# If the folder `/etc/apt/keyrings` does not exist, it should be created before the curl command, read the note below. | |
# sudo mkdir -p -m 755 /etc/apt/keyrings | |
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg | |
# This overwrites any existing configuration in /etc/apt/sources.list.d/kubernetes.list | |
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubectl |