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 in Kubernetes by Kiara
321 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 by Kashish

Related Questions In Kubernetes

0 votes
1 answer

“403 Insufficient Permission” while creating a Kubernetes Cluster on Google Cloud instance

To run ./cluster/kube-up.sh, you most likely need compute scope ...READ MORE

answered Aug 28, 2018 in Kubernetes by Kalgi
• 36,690 points
88 views
0 votes
1 answer

Is it possible to access GCP resources using api without a user interaction.?

yes that's totally possible. You'd have to create ...READ MORE

answered Sep 19, 2018 in Kubernetes by Kalgi
• 36,690 points
23 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
• 36,690 points
38 views
0 votes
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
• 36,690 points
38 views
0 votes
1 answer

Delete a cluster created using kops

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

answered Jan 8 in Kubernetes by Jim
82 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.