Kubernetes with KOPS on AWS - Clusters, Metrics Server

7 0 1
                                        


Kubernetes is an open-source platform for managing cloud workloads , security and comfort of the Cloud infrastructure with the powerful container deployment, management and scaling capabilities

Oops! This image does not follow our content guidelines. To continue publishing, please remove it or upload a different image.

Kubernetes is an open-source platform for managing cloud workloads , security and comfort of the Cloud infrastructure with the powerful container deployment, management and scaling capabilities .

It is very easy to use and maintain the Kubernetes clusters using kops.

Here, we are going to describe how to use kops to install & manage the Kubernetes Cluster on AWS.Installation & Configuration

Install kops :-

Go to the ec2 instance > launch the ec2 instance > ssh into the ec2 instance

curl -Lo kops -s | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64sudo chmod +x ./kopssudo mv ./kops /usr/local/bin/

Install kubectl :-

curl -Lo kubectl -s sudo chmod +x ./kubectlsudo mv ./kubectl /usr/local/bin/kubectl

Setup am IAM user called kops(programmatic user) and grp called kops > give him required access such as like ec2,s3 and VPC.

Login into ec2 instance again :

aws configure

Enter the access key and enter secret access key , enter the region which you using

Setup env variable

export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)

Configure DNS if needed — In case if you don't want to setup DNS append the name of your cluster with "k8s.local"

Create the s3 bucket — Here it is created with name "youbucketname"

Creating your first cluster

Prepare environment

In this stage, one is ready to start creating his first cluster. Make this process straightforward by setting up a few environment variables.

export NAME=myfirstcluster.example.comexport KOPS_STATE_STORE=s3://prefix-example-com-state-store
Know More:

You've reached the end of published parts.

⏰ Last updated: Sep 10, 2019 ⏰

Add this story to your Library to get notified about new parts!

...Where stories live. Discover now