2. What is GitOps?
• GitOps is a workflow where Git is the source
of truth for system configurations.
• Key Principles:
• - Git = desired state
• - Automation applies that state
• - Changes are tracked and auditable
4. Benefits of GitOps Without
Kubernetes
• - Full audit trail with Git
• - Declarative system management
• - Automation reduces manual errors
• - Works for VM, Docker, Bare Metal, Cloud
• - Flexible with existing tools
6. Infrastructure as Code (IaC)
• - Define infrastructure and config as code
• - Version controlled in Git
• - Examples: Docker Compose, Ansible,
Terraform
7. Git Workflow for GitOps
• - Branch strategy: main, feature branches
• - PR approval process
• - Automation triggered on merge to main
• - Git reflects current system state
8. GitHub Actions Example - Docker
Compose
• Example workflow for Docker Compose
deployment with SSH
16. Git Basics & Common Commands
• - Git is a version control system to track
changes in code or configurations.
• Common Git Commands:
• - git clone <repo_url> # Copy a repository
• - git status # See current changes
• - git add . # Stage all changes
• - git commit -m "msg" # Commit staged