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 L2_ADVERTISEMENT_RANGE="192.168.205.96-192.168.205.103"
export MS1_IP="192.168.205.164" # it is used for demo mediaserver installation
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.