In normal kubernetes CI/CD process , following process occurs :
- clone code from git
- build and push docker image
- update kubernetes deployment with updated code
According to gitops definition
GitOps is a new approach to Continuous Deployment that leverages Git as a single source of truth for declarative infrastructure and applications, providing both revision and change control. With GitOps, a system is run by submitting pull requests (and subsequent merges) to achieve the desired state of the system represented in a Git repository
what my understanding of gitops is , when you update anything in git (as this is the source of truth) , the desired state of kubernetes changes to the latest one and the latest code is deployed.
End Result of traditional CI/CD without gitops: new code is deployed as kubernetes deployment
End Result of gitops: new code is deployed as kubernetes deployment
I am unable to figure the difference . sorry if it sounds weird to you. But I am kinda new and exploring gitops .
Thanks in advance for your response