Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying manifests #138

Open
cemo opened this issue Mar 29, 2017 · 12 comments
Open

Modifying manifests #138

cemo opened this issue Mar 29, 2017 · 12 comments

Comments

@cemo
Copy link

cemo commented Mar 29, 2017

I have an interesting case where my modified api servers manifests are reverted somehow. I wanted to enabled batch api for enabling cronjobs of kubernetes but had some issues.

  1. What is the cause of this revert?
  2. What is the correct way to modify them?
@yagonobre
Copy link
Contributor

  1. Because cloud-init in coreos run every time that the machine complete the boot
  2. Modify user-dat in etcd instances, you need to stop the instance, and create a new launch configuration to auto scaling.

@cemo cemo closed this as completed Mar 29, 2017
@cemo
Copy link
Author

cemo commented Mar 29, 2017

I have a production setup. Can I do this operation in a safe manner? :)

@cemo cemo reopened this Mar 29, 2017
@cemo
Copy link
Author

cemo commented Mar 29, 2017

terraform plan -target=module.etcd.aws_instance.etcd[0]

displays only 1 instance. Can I do in this way? What do you think?

@cemo
Copy link
Author

cemo commented Mar 30, 2017

#75 (comment)

@yagonobre
Copy link
Contributor

Yes, you can use this procedure. But the step one is outdated, tack no more storage manifests on s3, you will need to edit the user-data for worker nodes.

@yagonobre
Copy link
Contributor

terraform plan -target=module.etcd.aws_instance.etcd[0]

I think that it cant work, because you need to stop the instance to modify user-data

@cemo
Copy link
Author

cemo commented Mar 30, 2017

when you change user data, terraform destroys and recreates instance. Do you think that it is doable in this way?

@yagonobre
Copy link
Contributor

Yes, but you need to do it instance by instance in masters, or you will get etcd unhealthy

@cemo
Copy link
Author

cemo commented Mar 30, 2017

Actually that is why I wrote etcd[0] because I was considering to do one by one.

@yagonobre
Copy link
Contributor

Nice, I think that it work

@cemo
Copy link
Author

cemo commented Mar 30, 2017

I will also upgrade cluster as well. The order is matters? I mean masters first than I should update workers?

@yagonobre
Copy link
Contributor

the order is not matters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants