Skip to main content

5.1.1.1. OS Setup

5.1.1.1.1. Basic OS Setup

This section covers the basic preparation of ETCD nodes before installing components. It describes setting up environment variables, changing the hostname, and installing necessary system utilities. These steps are mandatory for the correct operation of etcdctl and other components.

Basic node setup

● Required

Basic node settings

  • Node environment variables.
  • Changing the node name.
  • Installing dependencies.

Node environment variables

export HOST_NAME=master-1
export CLUSTER_NAME="my-first-cluster"
export BASE_DOMAIN="example.com"
export CLUSTER_DOMAIN="cluster.local"
export FULL_HOST_NAME="${HOST_NAME}.${CLUSTER_NAME}.${BASE_DOMAIN}"

Changing the node name

hostnamectl set-hostname ${FULL_HOST_NAME}

Installing dependencies

sudo apt update
sudo apt install -y conntrack socat jq tree