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?
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.