<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Gitops on /sre - DevOps &amp; SRE Culture</title><link>https://slashsre.com/en/tags/gitops/</link><description>Recent content in Gitops on /sre - DevOps &amp; SRE Culture</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 05 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://slashsre.com/en/tags/gitops/index.xml" rel="self" type="application/rss+xml"/><item><title>GitOps with ArgoCD: From Commit to Automated Deploy in Kubernetes</title><link>https://slashsre.com/en/posts/gitops-argocd-kubernetes/</link><pubDate>Mon, 05 Oct 2026 00:00:00 +0000</pubDate><guid>https://slashsre.com/en/posts/gitops-argocd-kubernetes/</guid><description>&lt;h2 id="what-is-gitops-and-why-does-it-matter"&gt;What is GitOps and why does it matter?&lt;/h2&gt;&#10;&lt;p&gt;GitOps is an operational paradigm where &lt;strong&gt;Git is the single source of truth&lt;/strong&gt; for both your infrastructure and applications. Instead of applying changes manually with &lt;code&gt;kubectl apply&lt;/code&gt;, every change goes through a &lt;strong&gt;pull request&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;The advantages are clear:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Full audit trail&lt;/strong&gt;: every change is recorded in Git history&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Instant rollbacks&lt;/strong&gt;: &lt;code&gt;git revert&lt;/code&gt; and you&amp;rsquo;re done&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Consistency&lt;/strong&gt;: cluster state always reflects what is declared in Git&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Collaboration&lt;/strong&gt;: the same development workflows apply to infrastructure&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="installing-argocd"&gt;Installing ArgoCD&lt;/h2&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Create namespace&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl create namespace argocd&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Install ArgoCD&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Retrieve initial admin password&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl -n argocd get secret argocd-initial-admin-secret &lt;span style="color:#f1fa8c"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; -o &lt;span style="color:#8be9fd;font-style:italic"&gt;jsonpath&lt;/span&gt;&lt;span style="color:#ff79c6"&gt;=&lt;/span&gt;&lt;span style="color:#f1fa8c"&gt;&amp;#34;{.data.password}&amp;#34;&lt;/span&gt; | base64 -d&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Port-forward to access the UI&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl port-forward svc/argocd-server -n argocd 8080:443&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="gitops-repository-structure"&gt;GitOps Repository Structure&lt;/h2&gt;&#10;&lt;p&gt;A clean repository structure is essential:&lt;/p&gt;</description></item></channel></rss>