Create and manage multiple Kubernetes Cluster’s

Sundeep Nagumalli
3 min readSep 9, 2021

As a Kubernetes Administrator, one of the frequent tasks is to manage multiple clusters as per requirement. There might be a scenario where your company might maintain multiple clusters for integration, staging, testing environments or manages multiple applications on a single server. So, Instead of creating/managing multiple clusters for each environment from different jump servers, we can create multiple clusters from a single jump server and manage the clusters simultaneously.

The agenda of this writing is to create and manage multiple clusters from remote jump server.

Note:
1. All softwares (kops, kubectl) are installed and S3 Bucket, Route 53 Hosted Zones are configured before cluster creation.
2. After running below commands to create cluster, you can see a kube-config file getting generated at
~/.kube/ directory with name config. Rename the kube-config files as config1 (book-for-fun.online), config2 (devops-sundeep.info), config3 (testing.gossip-cluster.local) for respective cluster configurations.

Create Cluster-1: (book-for-fun.online)

# kops create cluster — name=book-for-fun.online — state=s3://k8-cluster-testing-bucket — zones=us-west-1a — node-count=1 — node-size=t3.medium — master-size=t3.medium — dns-zone=book-for-fun.online

Create Cluster-2: (devops-sundeep.info)

# kops create cluster — name=devops-sundeep.info —…

--

--

Sundeep Nagumalli
Sundeep Nagumalli

Written by Sundeep Nagumalli

DevOps Engineer, AWS Certified Solutions Architect Associate

No responses yet