News for hackers. Stuff that matters.
Re:Tanka: Our way of deploying to Kubernetes by nyxxie on Friday January 10, 2020 @12:02PM (#22012422)
Terraform is really good at describing how infrastructure should be provisioned (VMs, load balancers, dns entries, networking, etc). Provisioning software on a VM and keeping it in a consistent state, however, is not something it's very good at. Userdata is very difficult to do anything complex with (limited size payloads, optimized for uploading a single shell script), and the provisioner system is explicitly described as a "last resort". This makes Terraform not so good at describing how software should be provisioned.

There is a bit of a movement, however, behind using it to deploy software by pairing it with Packer. You use Packer to create an e.g. AMI whose sole job it is to run your software (like a Docker container) then use Terraform to launch a bunch of EC2 instances that have juuuust enough resources to effectively run your software. That'd allow you to eliminate k8s from your stack, though it remains to be seen which stack would be more cost-efficient to run on.

Re:Tanka: Our way of deploying to Kubernetes by cbushko on Friday January 10, 2020 @09:18PM (#22017607)
I do not understand what you mean by "how your software should be provisioned"?

I have about 40 kubernetes services all as modules using the kubernetes terraform provider. I think I have 1000+ pods running on our one cluster all deployed through terraform.

It works very well because I can chain infrastructure resources into my service deployments. For example, I can create a dynamically named bucket and pass the name of that bucket as configmap/secret into my service to use.

Re:Tanka: Our way of deploying to Kubernetes by joseph on Friday January 10, 2020 @12:26PM (#22012701)
Check out https://www.terraform.io/docs/providers/template/d/cloudinit... if you want to do something more complex than a single shell script.
Re:Tanka: Our way of deploying to Kubernetes by jalfresi on Friday January 10, 2020 @12:20PM (#22012619)
This is interesting... not heard of this. Any pointers/links to more info on this?