tack icon indicating copy to clipboard operation
tack copied to clipboard

Modifying manifests

Open cemo opened this issue 7 years ago • 12 comments

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?

cemo avatar Mar 29 '17 12:03 cemo

  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.

yagonobre avatar Mar 29 '17 14:03 yagonobre

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

cemo avatar Mar 29 '17 15:03 cemo

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

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

cemo avatar Mar 29 '17 15:03 cemo

https://github.com/kz8s/tack/issues/75#issuecomment-258558846

cemo avatar Mar 30 '17 10:03 cemo

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 avatar Mar 30 '17 11:03 yagonobre

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

yagonobre avatar Mar 30 '17 11:03 yagonobre

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

cemo avatar Mar 30 '17 14:03 cemo

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

yagonobre avatar Mar 30 '17 14:03 yagonobre

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

cemo avatar Mar 30 '17 14:03 cemo

Nice, I think that it work

yagonobre avatar Mar 30 '17 17:03 yagonobre

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

cemo avatar Mar 30 '17 19:03 cemo

the order is not matters

yagonobre avatar Apr 04 '17 20:04 yagonobre