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:
On VM1, clone the repository:
Replace
{TAG_NAME}
with one of the available tags (to list all available tags, usegit tag
):
git clone https://github.com/aipix-dev/aipix-deploy.git
cd ./aipix-deploy
git checkout {TAG_NAME}
cd kubernetes/k8s-onprem/
Create the
sources.sh
file fromsources.sh.sample
:
cp ./sources.sh.sample ./sources.sh
Complete the
source.sh
file with the information acquired during the preparation stage (as described in the Prerequisites section of the article):
vim ./sources.sh
##Example
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"
export MS1_IP="192.168.205.164" # it is used for demo mediaserver installation
### System variables
export SRC_K8S_VER="1.32"
export SRC_K8S_VER_PATCH="3"
export SRC_K8S_VER_BUILD="1.1"
export SRC_CONTAINERD_VER="2.0.4"
export SRC_RUNC_VER="1.2.6"
export SRC_NET_PLUGINS_VER="1.6.2"
export SRC_CALICO_VER="3.29.3"
export SRC_MetalLB_VER="0.14.9"
Install the base components of Kubernetes:
./install_kube_base.sh
Install the Kubernetes components specific to a single-node:
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.