Skip to main content

AWS EKS - simple creation

Unifie can create kubernetes cluster from UI in AWS EKS inside your own account automatically (with terraform script)

It is a simplest way to get production ready cluster.

create1

Unifie need to have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Keys will be used to get access to the AWS api and create a cluster.

create1

Now you can specify cluster size, version and node type. Default values are good for a common usage.

create1

Cluster creating in two steps:

  1. Plan job - this step do not change anything. It just check the existed resources and build a plan of steps (changes) that need to be done to bring infrastructure to the target state. You can create plan job in any time and run them again and again, it will not affect to real infrastructure.
  2. Apply job - perform steps from the plan. It makes changes. It create new resources and remove or update existed.

create1

If you got any kind of errors during apply or plan - you can run plan job again and new plan job build a new plan according thr real infrastructure status. It will not create 2 clusters instead one.

On this screen - we got an error because of on the previous steps use a wrong aws keys. It is not a problem. Will use proper keys and try again.

create1

When you got a successfully finished plan job - check the logs. There you can get fully detailed information about the planing changes in infrastructure.

create1

If all is okay - continuer with a plan.

Important
  • Cluster creation will increase your bills in your account in AWS
  • If you will stop apply process, you will need to destroy the cluster manually.
  • AWS EKS cluster is paid.
  • AWS will bill you for everything (nodes, traffic, IP v4, volumes and so on ...).
  • Price will depend from your usage and cluster size.
  • Price will be more than 180 USD per month.
  • You can destroy cluster at any time later.

create1

Cluster creation can take 20 - 30 minutes, please be patient. You can see the progress in the logs in realtime.

create1

When cluster is ready - you can see this screen.

create1

Install addons (Integrations)

Now you have a working cluster. We recommend to install addons for this cluster.

  • Ingress if you want to deploy web service that should be available from internet
  • Karpenter - allow to add nodes autoscaling functional for cluster
  • KEDA - Kubernetes-based Event Driven autoscaler for deployments
  • Metrics-Server - need to performance monitoring
  • Prometheus and OpenCost- good for monitoring
  • EBS and EFS drivers - need if you will deploy Stateful applications (Databases, MySQL, Wordpress, Redis and others)

More about addons.

Jobs history

You can see all previous jobs in a list and can check the logs for them

create1

Create cluster troubleshooting

  • Be sure that use a proper AWS keys with proper permissions
  • Check that you do not have cluster with the same name in your account
  • By default aws have a limit for 5 VPC per region. Be sure that you have less than 5 VPC in selected aws region (Cluster will create a new one for own network)
  • if your apply job finished with error - you can run it again. It will not create a second cluster. It will try to finish creation from the last job.

Destroy cluster

To remove cluster from unifie - you should delete all applications deployed in this cluster. Than just use delete button.

Remove cluster

If cluster was created from unifie UI (with terraform), please run destroy job before remove the cluster.

Important

AWS will charge you if you did not remove unused resources.

run destroy job

Cluster destroying in two steps:

  1. Destroy plan job - this step do not change anything. It just check the existed resources and build a plan of steps (changes) that need to be done to remove all resources. You can create plan job in any time and run them again and again, it will not affect to real infrastructure.
  2. Destroy job - perform steps from the plan. It makes changes. It remove all resources.

Run Destroy plan

Destroy plan

When you got a successfully finished Destroy plan job - check the logs. There you can get fully detailed information about the planing changes in infrastructure.

If all is okay - continuer with click Destroy button.

When destroy is done - check the logs. They should not have an errors.

destroy is done

Destroy cluster troubleshooting

If you created any resources manually in cluster network (Loadbalancers, RDS databases, Virtual servers, Peering and so on) - AWS not allow to remove this VPC network. And Destroy job will failure.

In this case you need to open your aws account and manually try to remove cluster VPC network and all internal resources. When it will be done - run Destroy plan and Destroy job again.