Does this book talk about scripting deployment of a Kubernetes cluster? For example., using Terraform scripts, I can specify a barebones k8s cluster and by the execution of this script my k8s cluster can be set up on demand on any cloud provider. does this book address this?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry wrote:Does this book talk about scripting deployment of a Kubernetes cluster?
Yes and no. We're less concerned in the book with provisioning Kubernetes clusters, and more concerned with what you do with them once you have them. Our recommendation is to use a managed service (such as Google Kubernetes Engine or Elastic Kubernetes Service) wherever possible, and of course Terraform providers are available to provision those, and you should definitely use them if Terraform is in your ecosystem. If a managed service isn't an option for whatever reason, we look at some of the dedicated tools for automated provisioning of Kubernetes on cloud services, such as kops.
In general, everything in the book is based around an infrastructure-as-code view of cloud operations, including Terraform, and there are some ready-to-use Terraform code examples in our GitHub repo: https://github.com/cloudnativedevops/demo
https://kubernetes.io/docs/setup/#production-environment is a good place to track the (growing) lists of ways to provision a k8s cluster. I agree with John that if you're already using Terraform, it probably makes sense to use that. In general I would say find a tool that more or less is meant for making a cluster that has the features you need, running on the platform you already use and supports your existing tooling/workflow VS picking one that is infinitely flexible. If you can use Terraform + GKE/EKS/AKS, I would do that. If you don't use terraform and _only_ run on AWS, I would probably just use eksctl. If you need to provision your own clusters on your own machines, I would start out with something like kubespray.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop