How to start and stop a cluster on AWS using kops without stopping the instance

0 votes
I've created a Kube cluster with one master and three nodes, so in total 4 instances running. I want to stop the container and start again tomorrow. is there a way to do that?
Jan 8, 2019 in Kubernetes by Kiara
9,373 views

1 answer to this question.

0 votes

Export your KOPS_STAT_STORE variable

export KOPS_STATE_STORE=s3://your-bucket-name

Get your instances group

kops get ig

edit your master and slave nodes

kops edit ig <master-name>

Change maxsize and minsize to 0

minsize: 0
maxSize: 0

Update your cluster

kops update cluster --yes

Rolling changes to stop the cluster

kops rolling-update cluster --yes

Rolling changes to start the cluster

kops rolling-update cluster --cloudonly --force --yea

answered Jan 8, 2019 by Kashish

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

How do I expose a service to a host outside the cluster?

There are two ways by which we ...READ MORE

answered Jul 12, 2019 in Kubernetes by Sirajul
• 59,230 points
801 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,396 views
+1 vote
1 answer
0 votes
1 answer

Create LoadBalancer for kubernetes cluster in aws

Hello @Lina, If you're running your cluster on ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,350 points
752 views
0 votes
1 answer

Delete a cluster created using kops

Deleteing a cluster using kops is very simple. ...READ MORE

answered Jan 8, 2019 in Kubernetes by Jim
4,626 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP