SSH into the workstation machine (bm-wkst). On the command prompt carry out the following steps
- Disable AppArmor (as it’s not supported by Anthos on Bare metal) by issuing the following command as
-
-
- Stop AppArmor
-
> sudo systemctl stop apparmor
-
-
- Disable AppArmor
-
> sudo systemctl disable apparmor
-
-
- Check that AppArmor appears as inactive
-
> sudo systemctl status apparmor | grep “Active”
Active: inactive (dead) since Sun 2021-04-04 13:06:18 UTC; 19s ago
2. Disable Firewall (as it’s not supported by Anthos on Bare metal) by issuing the following commands
-
-
-
- Disable ufw
-
-
> sudo ufw disable
-
-
-
- Check that ufw is disabled
-
-
>sudo ufw status
# Status: inactive
3. Install Docker 19.03+ by executing the following commands
-
-
-
- Update your package manager:
-
-
> sudo apt-get update
-
-
-
- Install Docker 19.03+:
-
-
> sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common \
docker.io
-
-
-
- Verify the version of docker 19.03+:
-
-
> sudo docker version
You should see version as 19.03.x and above in the output
-
-
-
- Add your user to the docker group to run docker as non-root user (required by bmtcl tool)
-
-
> sudo usermod -aG docker $USER
4. Install kubectl tool by executing the following commands
-
-
-
- Authenticate with Google Cloud
-
-
> gcloud auth login –update-adc
Open the link provided in the output window in the browser and authenticate with your google account to grant access to the google SDK.
Copy the token from browser and paste it in the command prompt to verify your authentication
-
-
-
- Set your Google Cloud project.
-
-
> export PROJECT_ID=$(gcloud config get-value project)
-
-
-
- Download kubectl
-
-
> curl -LO “https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl”
-
-
-
- Execute the command to make it executable and copy it to bin folder
-
-
> chmod +x kubectl
> mv kubectl /usr/local/sbin/
5. Install bmctl tool by executing the following commands
> mkdir baremetal
> cd baremetal
> gsutil cp gs://anthos-baremetal-release/bmctl/1.7.0/linux-amd64/bmctl .
> chmod a+x bmctl
> mv bmctl /usr/local/sbin/
6. Verify by bmctl tool by running the following command. You should see the version details being printed.
> bmctl -v