Add/Delete worker-nodes
The TrilioVault Controller Cluster can be grown or shrunk at any time in its worker nodes if required.
When the master nodes need to be changed a redeployment is necessary.

Add a worker-node

Run the following command on a master-node as root to get a Kubernetes token:
1
kubeadm token create --print-join-command
Copied!
Run the following script using the output from the token create command.
1
yum install -y yum-utils
2
yum-config-manager \
3
--add-repo \
4
https://download.docker.com/linux/centos/docker-ce.repo
5
yum install docker-ce docker-ce-cli containerd.io
6
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
7
[kubernetes]
8
name=Kubernetes
9
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
10
enabled=1
11
gpgcheck=1
12
repo_gpgcheck=1
13
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
14
EOF
15
#Install Kubernetes (kubeadm, kubelet and kubectl)
16
dnf install -y kubeadm kubelet
17
systemctl start docker
18
systemctl enable docker
19
20
< Add output from above command >
Copied!
It is not required to do anything else as the TrilioVault Controller pods will automatically be deployed on any new node joining the Kubernetes cluster.

Delete a worker-node

Run the following command to get a list of all nodes in the Kubernetes cluster.
1
kubectl get nodes
Copied!
Delete the node using the node-name
1
kubectl delete node <nodename>
Copied!
Export as PDF
Copy link