TNS
VOXPOP
Do You Resent AI?
If you’re a developer, do you resent generative AI’s ability to write code?
Yes, because I spent a lot of time learning how to code.
0%
Yes, because I fear that employers will replace me and/or my peers with it.
0%
Yes, because too much investment is going to AI at the expense of other needs.
0%
No, because it makes too many programming mistakes.
0%
No, because it can’t replace what I do.
0%
No, because it is a tool that will help me be more productive.
0%
No, I am a highly evolved being and resent nothing.
0%
I don’t think much about AI.
0%
Cloud Native Ecosystem / Kubernetes

GitOps: ‘Git Push’ All the Things

May 11th, 2018 2:26pm by
Featued image for: GitOps: ‘Git Push’ All the Things

While the idea of cloud-native computing promises to change how modern IT operations work, the idea remains vague for many who work in the profession. “GitOps,” an idea that generated some buzz at the KubeCon + CloudNativeCon EU conference in Copenhagen last week, could bring some much-needed focus to this area.

GitOps is all about “pushing code, not containers,” said Alexis Richardson, Weaveworks CEO and chair of the Cloud Native Computing Foundation‘s Technical Oversight Committee, in his KubeCon keynote. The idea is to “make git the center of control,” of cloud-native operations, for both the developer and the system administrator,  Richardson said.

“The key point of the developer experience is ‘git-push,'” he said, alluding to the git command used to submit code as finished. He added that this approach is “entirely code-centric.”

At an initial glance, the open source git version control software makes perfect sense as a front-end for cloud native computing. Given its nearly widespread usage by developers, git commands are the Lingua Franca of the open source world. The basic idea is that all changes to a cloud-native system can be done through git. Once a commit is made, it sets off an automated pipeline, perhaps using a tool such as Jenkins X to containerize and test the code, and press it into production.

And this approach could work exactly the same for infrastructure management as well: Richardson calls this approach “declarative infrastructure.” Make changes in configuration through a YAML file, and Kubernetes can detect changes in the file and readjust the resources as necessary. Immutable infrastructure made easy! Weaveworks itself has released a number of tools for comparing the desired state with actual state in such cases, such as kubediff.

“The fundamental theorem of GitOps is that if you can describe it, you can automate it. And if you can automate it, you can control and accelerate it. The goal is to describe everything — policies, code, configuration and monitoring — and then version control everything,” wrote site reliability engineering architect Rob Scott, for The New Stack’s upcoming eBook on Kubernetes and continuous integration and deployment.

Weaveworks itself uses a GitOps pattern to support its own commercial Kubernetes managed service. It is git that holds the world state of the entire system, including previous versions, which are recoverable. This approach builds on “an atomic sequence of transactional commits,” Richardson said.

“The desired state of your entire system is in git, which means that the cluster and its observed state can be compared with [desired state configuration], at all times, for any layer of the stack,” he said. Richardson boasted that his company’s developers use kubectl, the Kubernetes’ command line, as little as possible. The company has been experimenting with managing the Istio service mesh through git, for instance, though this remains a work in progress:

Still, the idea of GitOps seems to be catching on outside of Weaveworks.

 Alex Ellis, creator of OpenFaaS, has built a native “GitHub app” called OpenFaaS Cloud  that runs an automatic CI/CD pipeline that can be triggered by a git command. OpenFaaS Cloud is a number of serverless functions that sits in between the user’s git repositories and a deployment of OpenFaaS. When the user pushes serverless functions into the GitHub repo, that code is checked out, built, tested and then pushed into a Docker registry from where it is deployed as a function.

 

One early adopter of the GitOps approach has been the content platform team of the Financial Times, to judge by the KubeCon keynote talk from Sarah Wells, who was the tech lead for that team. The company’s content platform is built from 150 microservices. In 2015, the newspaper moved this platform over to Docker from virtual machines.

After migrating to containers, the Financial Times found the number of releases it did increased from 12 a year to 2,200, an increase that also came with a much lower failure rate. Agility! Instead of spinning up a new VM, all the changes are simply made to a YAML file. While she didn’t mention “GitOps” by name, Wells did say developers push all their changes through GitHub.

Group Created with Sketch.
TNS owner Insight Partners is an investor in: Docker, Kubernetes.
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.