Installing required tools
Introduction
This section will show you how to install the required tools needed to complete this guide. You will focus on most popular tools used in the Kubernetes world. You will also install additional programs used for interacting with the DigitalOcean API, and local development enablement.
Below is a complete list of the tools used in this guide:
- Kubectl - this the official Kubernetes client. Allows you to interact with the Kubernetes API, and to run commands against Kubernetes clusters.
- Helm - this is the package manager for Kubernetes. Behaves the same way as package managers used in Linux distributions, but for Kubernetes. Gained a lot of popularity, and it is a widely adopted solution for managing software packages installation and upgrade in Kubernetes.
- Doctl - allows you to interact with the DigitalOcean API via the command line. It supports most functionality found in the control panel. You can create, configure, and destroy DigitalOcean resources like Droplets, Kubernetes clusters, firewalls, load balancers, database clusters, domains, and more.
- Docker Desktop - enables you to build and share containerized applications and microservices using Docker. It has a GUI interface, and bundles a ready to run Kubernetes cluster to use for local development.
- Kustomize - Kustomize lets you customize raw, template-free YAML files for multiple purposes, leaving the original YAML untouched and usable as is.
- Tilt - eases local development by taking away the pain of time consuming Docker builds, watching files, and bringing environments up to date.
Prerequisites
To complete this section, you will need:
Installing Docker Desktop
Depending on your operating system, you can install docker-desktop in the following ways:
-
Install
docker-desktop
using Homebrew: -
Test to ensure you installed the latest version:
-
Update
apt
package index: -
Add Docker's official GPG key:
-
Set up the repository:
-
Install docker desktop:
-
Test to ensure you installed the latest version:
Installing Doctl
Depending on your operating system, you can install doctl in the following ways:
-
Install
doctl
using Homebrew: -
Test to ensure you installed the latest version:
-
Download the latest
doctl
package (check releases page): -
Extract the
doctl
package: -
Set the executable flag, and make the
doctl
binary available in your path: -
Test to ensure you installed the latest version:
Installing Kubectl
Depending on your operating system, you can install kubectl in the following ways:
-
Install kubectl using Homebrew:
-
Test to ensure you installed the latest version:
-
Download the latest
kubectl
release: -
Set the executable flag, and make the
kubectl
binary available in your path: -
Test to ensure you installed the latest version:
Installing Helm
Depending on your operating system, you can install helm in the following ways:
-
Install helm using Homebrew:
-
Test to ensure you installed the latest version:
-
Download the latest
helm
release:curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null sudo apt-get install apt-transport-https --yes echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list sudo apt-get update sudo apt-get install helm
-
Test to ensure you installed the latest version:
Installing Kustomize
Depending on your operating system, you can install kustomize in the following ways:
-
Install kustomize using Homebrew:
-
Test to ensure you installed the latest version:
Installing Tilt
Depending on your operating system, you can install Tilt in the following ways:
Installing Cloud Native Buildpacks's CLI (Optional)
Note
Installing the pack
CLI is only needed if you wish to build and push the docker images of the microservices-demo app using Cloud Native Buildpacks
as explained in preparing the demo application section.
Depending on your operating system, you can install pack in the following ways:
-
Install pack using homebrew:
-
Test to ensure you installed the latest version:
Next, you will learn how to authenticate with the DigitalOcean API to get the most out of the tools used in this guide to provision required cloud resources.