Kubernetes single-node installation

All operations will be executed on VM1, unless an alternative is explicitly designated.

To carry out the single-node Kubernetes installation, follow these steps:

  1. On VM1, clone the repository:

  • Replace {TAG_NAME} with one of the available tags (to list all available tags, use git tag):

Bash
sudo apt update && sudo apt install -y git
git clone https://github.com/aipix-dev/aipix-deploy.git
cd ./aipix-deploy
git checkout {TAG_NAME}
cd kubernetes/k8s-onprem/
  1. Create the sources.sh file from sources.sh.sample:

Bash
cp ./sources.sh.sample ./sources.sh
  1. Complete the source.sh file with the information acquired during the preparation stage (as described in the Prerequisites section of the article):

Bash
vim ./sources.sh
Bash
#!/bin/bash

export K8S_API_ENDPOINT="192.168.205.164"
export POD_SUBNET="10.244.0.0/16"
export SERVICE_SUBNET="10.245.0.0/16"
export TRAEFIK_ADVERTISEMENT_RANGE="192.168.205.96-192.168.205.96"
export L2_ADVERTISEMENT_RANGE="192.168.205.97-192.168.205.103" # Additional service advertisement range. Comment out this line if Traefik is the only external service.
export MS1_IP="192.168.205.164" # Used only for the demo media server installation in a container.

### System variables
export SRC_K8S_VER="1.35"
export SRC_K8S_VER_PATCH="5"
export SRC_K8S_VER_BUILD="1.1"
export SRC_CONTAINERD_VER="2.3.1"
export SRC_RUNC_VER="1.4.2"
export SRC_CALICO_VER="3.31.5"
export SRC_MetalLB_VER="0.16.1"
  1. Install the base components of Kubernetes:

Bash
./install_kube_base.sh
  1. Install the Kubernetes components specific to a single-node:

Bash
source ./sources.sh
./install_kube_base-single-node-demo.sh
cd ../

It is recommended to reconnect your VM1 host with a new SSH session in order to apply the new environment variables required for autocompletion commands to work.