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
1,035 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 by Kashish

Related Questions In Kubernetes

0 votes
1 answer
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
• 41,660 points
69 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
• 41,660 points
58 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
217 views