Back

Deploying Kubernetes Clusters In All Clouds

Interesting conversations come up when chatting about vendor neutrality. The truth is, it’s really hard to find. For example, if you take an Infrastructure-as-Code (IaC) provide, you write the code the same way between clouds, but you still have to use different providers/registries, resources, etc... there really isn’t a true “neutral” method. With Codiac, you get as close as possible. In this blog post, you’ll learn how to deploy clusters AWS with Codiac. The key here is to see the ease-of-use and the true neutrality within the process between cloud providers.

Prerequisites

For the purposes of this blog post, you will need the following:

1. A method to create an AWS environment (if you want to follow along with the AWS piece).

Quick Codiac Configuration

In this section, you’ll run through a quick command checklist to get Codiac up and running. If you want a more in-depth Codiac configuration guide, you can check out the blog post here.

1. Sign up for the free trial of Codiac here: https://www.codiac.io/

2. Install Codiac via NPM (JavaScript package manager).

npm i -g @codiac.io/codiac-cli

3. Log into Codiac via the CLI with the username and password you used to sign up.

codiac login

4. Create an asset, which is a method of pointing to a container image that exists in a container registry. The four options are:

  • AWS ECR
  • Azure ACR
  • DockerHub
  • ArtifactHub


codiac asset create

Once complete, you can begin creating clusters.

AWS Cloud Configuration

The first thing that you’ll need to do is configure an authentication method if you want to create an AWS Elastic Kubernetes Service (EKS) cluster.

Step one is to ensure that you have a user with the right permissions.

First, log into your AWS console and go to IAM > Access management > Users


Next, go to Access keys and create a new one.


You’ll be prompted to input the AWS access key and secret.


Once you’re properly authenticated, you can create an EKS cluster. To do so, run the following command.

codiac noc cluster create

You’ll now begin to see prompts on the terminal.

The first prompt is to choose your cloud provider. In this case, choose AWS.


Specify a cluster name.


The next prompt is to choose an AWS Region and AZ.


After the region and AZ, you’ll have to choose a subnet. If you decide to create a new subnet, ensure that you have enough room in your AWS account to create a
new VPC.


Choose the size of your Worker Nodes.


Enter the amount of Worker Nodes that you want to run within your EKS Node Pool.


The last step is to choose the Kubernetes API version that you want to run within your cluster.


You’ll now see a summary of he options you’ve selected and what will be created.


If you log into your AWS environment, you should now see the cluster being created.

Michael Levan
Copy article link
Link copied to your clipboard