HACKER Q&A
📣 scrubs

Kubernetes API?


Hello, Belatedly getting into Kubernetes at a large corp ... for which there is support for K8s. However, it's often sprinkled with Ansible, Terraform too. Now according to the books I've been reading, K8 does not need help from other deployment/orchestration to tools to move in container images. This brings me to my question:

I want to stay lean and mean. To that end,

(1) True/false: kubeadmn is sufficient to deploy new images and otherwise bring containers through their life cycle.

(2) If false --- I see the K8 REST/HTTP API is very large --- is there a GO library that helps me make calls into K8 to take containers through their life-cycle.

I believe, in our case, Ansible and Terraform were sprinkled in to a certain task/library set for reasons pre-dating K8. K8 was added later as an alternative, now preferred way to deal with CDCI. By answering those questions above I will be able able to assess whether I should or should not be distracted by this other noise.


  👤 PeterHK Accepted Answer ✓
You need to setup k8s first if you not on google-cloud which is what terraform is often used. and there could be some initial tasks which some might use ansible for. but once k8s cluster running you can manage it without terraform/ansible for the most part (you still might want to change master/worker node specifics, which you do with terraform/ansible/nixos/nixops/...).

👤 scrubs
Coincidentally, it seems like this part of the solution:

https://github.com/kubernetes/client-go


👤 yuppie_scum
You want to learn Helm.