News for hackers. Stuff that matters.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by sgarland on Wednesday June 01, 2022 @11:12AM (#31583007)
Drift, as the other child comment mentions, but also loss of version control. I do not want to have to trawl through someone's shell history to figure out what they changed, nor do I want to have to redirect `kubectl get foo -o yaml` output into diff.

If everything is in code, and you have a reasonable branching strategy, it's much easier to control change, to rollback bad merges, to run pre-hooks like security checks and configuration validation tools, etc.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by throwaway894345 on Wednesday June 01, 2022 @12:16PM (#31584125)
It's not drift, because the infra-as-code doesn't manage the image field (the application's CD pipeline does). You don't trawl through someone's shell history', you look at the CD pipeline history. Rollbacks are easy--you just deploy the prior version via your CD tool.

I think you're assuming that invoking kubectl means invoking it directly from a user's command line, but kubectl can also be called in a CD script.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by sgarland on Wednesday June 01, 2022 @12:33PM (#31584388)
If you're using ArgoCD or something then sure, but bear in mind the original statement you made was directed at someone who is new to K8s, and given a command that can be executed from their shell, they would likely assume that's what you meant.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by throwaway894345 on Wednesday June 01, 2022 @12:55PM (#31584684)
It doesn’t have to be Argo, it can be Jenkins. Whether or not you use a CD pipeline is orthogonal to whether or not you use k8s. The best practice is to use a pipeline whether you’re targeting k8s or bare VMs or a higher level PaaS abstraction.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by I_dev_outdoors on Thursday June 02, 2022 @09:50PM (#31603271)
I'm not new to Kubernetes and I've been using containers since Solaris zones were introduced.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by thinkmassive on Wednesday June 01, 2022 @11:32AM (#31583360)
You know kubectl has a built in diff subcommand?
Re:Ask HN: If Kubernetes is the solution, why are there so m... by sgarland on Wednesday June 01, 2022 @11:55AM (#31583759)
I do now! Thank you.