This guide provides instructions for getting started with Konvoy to get your Kubernetes cluster up and running with basic configuration requirements on an Amazon Web Services (AWS) public cloud instances. If you want to customize your AWS environment, see Install AWS Advanced.
Prerequisites
Before starting the Konvoy installation, verify that you have:
- An x86_64-based Linux or macOS machine with a supported version of the operating system.
- The
dkp
binary for Linux, or macOS. - Docker version 18.09.2 or later.
- kubectl for interacting with the running cluster.
- A valid AWS account with credentials configured.
Configure AWS prerequisites
-
Follow the steps in IAM Policy Configuration.
-
Export the AWS region where you want to deploy the cluster:
-
Export the AWS Profile with the credentials that you want to use to create the Kubernetes cluster:
-
Name your cluster
Give your cluster a unique name suitable for your environment. In AWS, it is critical that the name be unique as no two clusters in the same AWS account can have the same name.
Set the environment variable to be used throughout this documentation:
Create a new AWS Kubernetes cluster
If you use these instructions to create a cluster on AWS using the DKP default settings without any edits to configuration files or additional flags, your cluster is deployed on an Ubuntu 20.04 operating system image with 3 control plane nodes, and 4 worker nodes.
-
Create a Kubernetes cluster:
You will see output similar to the following:
As part of the underlying processing, the DKP CLI:
- creates a bootstrap cluster
- creates a workload cluster
- moves CAPI controllers from the bootstrap cluster to the workload cluster, making it self-managed
- deletes the bootstrap cluster
To understand how this process works step by step, you can follow the workflow in Install AWS Advanced.
Explore the new Kubernetes cluster
The kubeconfig file is written to your local directory and you can now explore the cluster.
-
List the Nodes with the command:
You will see output similar to:
-
List the Pods with the command:
You will see output similar to:
Delete the Kubernetes cluster and cleanup your environment
If you no longer need the cluster and want to delete it, you can do so using the DKP CLI.
-
Update the AWS bootstrap credentials:
-
Delete the provisioned Kubernetes cluster:
You will see output similar to:
Similar to create cluster
, use the flag --self-managed
with the delete cluster
command:
- creates a bootstrap cluster
- moves the CAPI controllers from the workload cluster back to the bootstrap cluster
- deletes the workload cluster
- deletes the bootstrap cluster
To understand how this process works step by step, you can follow the workflow in Delete Cluster.