Setup
Now we should initialize the servers as configurations that we made.
note
The command examples used in this section uses kupboard
bash script. Check out Bash script for running kupboard for more information.
caution
The private key used to create server instances must be in data/certs
and its name should be ssh.pem
.
#
Generate SSH KeysFirst, we need to generate a private key and public key for ssh connection to all servers. You can create new keys with the kupboard command setup --keygen
.
If the command works properly, you can find ssh-kupboard.pem
and ssh-kupboard.pub
in data/certs
.
#
Initialize Usersetup --init-user
will copy the public key to all servers so that kupboard can access them through ssh connection with the public key.
Once this step is completed properly, you should access admin-node1
using kupboard ssh admin-node1
.
note
You can use a specific username when you need to use a specific username to initialize servers. For example, we should use a username used to register a public key when setting up servers on GCP.
#
Initialize ClusterTo initialize all servers with basic setting, setup --init-cluster
is used. (init step 1)
#
Initialize KubernetesTo initialize all servers with, setup --init-k8s
is used. (init step 2)
#
Finish InitializationTo finish initialization, setup --init-finish
is used. (init step 3)