K3S Single-Node Installation ( Without HA )
Installation Steps
The installation steps are as follows:
Environment Customization Steps
Step 1: Download the K3s binaries and start Installation
Step 2: Run the below command on the master node
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.24.7+k3s1 INSTALL_K3S_EXEC="--disable=traefik" sh -
K3s will be installed on the master node.
Step 3: Bash Completion for kubectl
1. Install bash-completion package
yum install bash-completion -y
2. Set up the autocomplete in Bash into the current shell; bash-completion
package should be installed first.
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
3. Also, add the alias for the short notation of kubectl
echo "alias k=kubectl" >> ~/.bashrc
echo "complete -o default -F __start_kubectl k" >> ~/.bashrc
4. and source your ~/.bashrc
source ~/.bashrc
Step 4: Install helm
1. Add this command in ~/.bashrc file.
echo "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> ~/.bashrc
2. run this in the command prompt.
source ~/.bashrc
3. Helm is a super tool to deploy external components. to install helm on cluster execute
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && sudo bash get_helm.sh
Step 5: Clone the CIM Repo
git clone -b <branch-name> https://efcx:RecRpsuH34yqp56YRFUb@gitlab.expertflow.com/cim/cim-solution.git
Replace the branch name with actual release.
Step 6: Install Traefik
Since we have disabled Traefik on installation, we need to install it now.
1. Change the directory to helm charts
cd cim-solution/kubernetes
2. Install the Traefik Helm Chart.
helm upgrade --install=true --namespace=traefik-ingress --wait=true --timeout=15m0s --create-namespace --values=external/traefik/values.yaml traefik external/traefik --debug
Step 7: CIM Deployment on Kubernetes
Please follow the steps in the document, Expertflow CX Deployment on Kubernetes to deploy Expertflow CX Solution.