Re:Kubernetes by Example
by bdcravens on Wednesday May 31, 2017 @01:18PM
(#14454206)
You still have to bootstrap the instances/droplets/etc with Docker, Kubernetes, etc before Dockerfiles can be used. Unless you're starting with images where those are already baked in, Ansible/Chef/Puppet are good ways to accomplish this on a clean OS.
[ Parent
| on HN ]
It's debatable. Ansible/Chef/Puppet themselves need to be bootstrapped as well.
Bash is perfectly fine if the machine can be installed with less than 100 lines of code and immutable infrastructure is being used (so no need for idempotent operations). Just make sure to add ShellCheck to the CI pipeline.
Re:Kubernetes by Example
by icebraining on Wednesday May 31, 2017 @06:08PM
(#14456320)
Ansible/Chef/Puppet themselves need to be bootstrapped as well.
Nope, Ansible just needs SSH access.
Re:Kubernetes by Example
by Whitestrake on Wednesday May 31, 2017 @11:56PM
(#14457898)
Remote hosts need Python, but you can use the raw command functionality to figure out what the remote package manager is and install Python as required.
Not when using AutoScaling Groups. Then the machine will be provisioned on boot and therefor ansible would have to be installed on the machine.
Re:Kubernetes by Example
by icebraining on Thursday June 01, 2017 @01:46PM
(#14462598)
No, you'd use Ansible to prepare the new image once, then you'd use that image to scale. Bootstrapping everything each time a VM is created doesn't make much sense.
> Bash is perfectly fine if the machine can be installed with less than 100 lines of code
It is always tough to predict the future; something < 100 lines can easily grow over time. It is nice to start with a tool like Chef/Ansible/Puppet which can more easily grow as the project grows vs Bash.