Latest / CyberSecurity Summary / Argo CD: Up and Running: A Hands-On Guide to GitOps and Kubernetes
Transcript
- 0:00Speaker 1: Welcome to the deep dive. We're your shortcut to getting
- 0:03Speaker 1: genuinely well informed fast without drowning you in details.
- 0:07Speaker 2: Yeah, we focus on those core insights, those aha moments exactly.
- 0:12Speaker 1: And today we are taking a really fascinating deep dive
- 0:15Speaker 1: into the world of Argo CD and git ops. We're
- 0:18Speaker 1: using Argo CD up and running a hands on guide
- 0:21Speaker 1: to get ups and Kubernetes by Andrew Block and Christian
- 0:24Speaker 1: Hernandez as our guide. It's a pretty comprehensive.
- 0:27Speaker 2: Definitely, and our mission today really is to unpack what
- 0:31Speaker 2: gid ops actually is, how Argo CD brings it to life,
- 0:35Speaker 2: and why it's becoming such a standard for cloud native apps.
- 0:39Speaker 1: Right. So, whether you're prepping for that big meeting or
- 0:42Speaker 1: just trying to stay current, or maybe you're just you know, curious.
- 0:45Speaker 2: We'll give you the essential nuggets you walk away understanding
- 0:47Speaker 2: this whole paradigm.
- 0:48Speaker 1: Okay, let's start unpacking getups. We hear this term everywhere,
- 0:52Speaker 1: so at its very core, what is it?
- 0:54Speaker 2: Well, the book defines it pretty simply. It's basically a
- 0:57Speaker 2: method for managing your infrastructure, your applications. Yeah, by describing
- 1:01Speaker 2: the state you want them to be in declaratively in
- 1:04Speaker 2: get and using git as that single source of truth.
- 1:08Speaker 1: That sounds simple, but I guess the revolutionary part is
- 1:11Speaker 1: the shift right from telling systems how to do things
- 1:13Speaker 1: exactly imperative commands to just defining what you want in
- 1:17Speaker 1: a way that's like auditible and trappable because it's.
- 1:20Speaker 2: In geit precisely. Yeah, that's the real aha moment there.
- 1:25Speaker 2: And you know the origin story is pretty interesting too.
- 1:27Speaker 1: Oh yeah, tell me about that.
- 1:29Speaker 2: It goes back to twenty seventeen with leave Works. They
- 1:32Speaker 2: apparently had this incident where someone fat finger to config.
- 1:36Speaker 1: Change oops we've all been there, took.
- 1:38Speaker 2: Down their whole platform. Yeah, but the way they recovered
- 1:41Speaker 2: by rolling back using git it sort of revealed this
- 1:44Speaker 2: new better way of working.
- 1:45Speaker 1: Ah. So necessity is the mother of invention.
- 1:48Speaker 2: Kind of Yeah. And their CEO, Alexis Richardson, he's the
- 1:51Speaker 2: one who coined the term git ops. It came out
- 1:54Speaker 2: of a real mess basically.
- 1:55Speaker 1: Okay, that makes sense, and it's important to note right
- 1:57Speaker 1: this isn't some completely separate thing from.
- 2:00Speaker 2: No, not at all. The book is really clear on this.
- 2:03Speaker 2: It says get ops is DevOps. Get ops is the
- 2:05Speaker 2: natural progression of DevOps.
- 2:07Speaker 1: So it's like formalizing the good stuff people were already
- 2:09Speaker 1: trying to do version control automation exactly.
- 2:13Speaker 2: It takes those DevOps best practices and puts them into
- 2:16Speaker 2: a really solid, audible automated workflow, like putting guardrails on things.
- 2:21Speaker 1: Gotcha. So if it's a progression, what specifically defines it?
- 2:25Speaker 1: Are their rules?
- 2:26Speaker 2: Yeah? There are the open getops principles, which came out
- 2:29Speaker 2: in twenty twenty one, lay out four key tenets. First,
- 2:32Speaker 2: it has to be declarative.
- 2:34Speaker 1: Declarative, meaning you describe the what, not the how, like
- 2:38Speaker 1: a Kubernetes manifest.
- 2:39Speaker 2: Precisely your entire system, state, apps, infra networks, whatever is
- 2:43Speaker 2: described declaratively, you say what the end state should look like. Okay.
- 2:47Speaker 1: Principle one declarative what's suck.
- 2:49Speaker 2: Second, versioned and immutable. The desired state lives entirely in.
- 2:53Speaker 1: Geit ah the source of truth part exactly.
- 2:55Speaker 2: And because it's GIT, you get a complete, unchangeable history
- 2:59Speaker 2: of every single change, auditing rollbacks, it's all built in.
- 3:02Speaker 1: That's huge. Okay.
- 3:03Speaker 2: Third, Third, and this is a really key difference from
- 3:06Speaker 2: a lot of traditional CICD. Changes are pulled.
- 3:10Speaker 1: Automatically, hold, not push right.
- 3:13Speaker 2: Instead of a CI server pushing updates, you have get
- 3:16Speaker 2: ups agents or controllers inside your environment, actively pulling the
- 3:21Speaker 2: definitions from Git. They run this reconciliation loop.
- 3:24Speaker 1: A reconciliation loop like a little robot constantly checking.
- 3:27Speaker 2: Yeah, constantly checking does the live system match the blueprint
- 3:31Speaker 2: in Git. It makes it more secure, more robust than
- 3:34Speaker 2: just reacting to webbooks.
- 3:36Speaker 1: Interesting, okay, And the fourth principle follows from that.
- 3:38Speaker 2: It does it's continuously reconciled. Those agents are always observing
- 3:42Speaker 2: the live state and working to make it match the
- 3:45Speaker 2: desired state from GIT. It's like Kubernetes controllers, but for
- 3:48Speaker 2: your whole application stack, always self healing, always striving for
- 3:52Speaker 2: that get state.
- 3:53Speaker 1: Okay. That makes get ups much clearer. So where does
- 3:55Speaker 1: argo CD fit in this landscape?
- 3:58Speaker 2: Rgo CD is a really prominent tool in this space.
- 4:00Speaker 2: It's part of the wider Argo project and those built
- 4:03Speaker 2: specifically for getups. Developer experience was a big focus too.
- 4:06Speaker 1: And its main job is its core purpose.
- 4:08Speaker 2: Is delivering changes to Kubernetes clusters, potentially at massive scale,
- 4:12Speaker 2: following those getups principles we just talked about, and.
- 4:15Speaker 1: The big value proposition seems to be around configuration drift.
- 4:18Speaker 2: Absolutely, that's where it really shines. It actively detects and
- 4:21Speaker 2: prevents configuration drift. You know, when your live cluster gets
- 4:25Speaker 2: out of sync with Git because someone made a manual
- 4:27Speaker 2: change or something.
- 4:28Speaker 1: Broke, rgo CD sees the mismatch and flags it or
- 4:32Speaker 1: fixes it both.
- 4:33Speaker 2: Potentially. It constantly compares the YAMEL and Git to the
- 4:37Speaker 2: live state. If they diverge, it lets you know, and
- 4:40Speaker 2: you can configure it to automatically sink things back to
- 4:42Speaker 2: the desired state.
- 4:43Speaker 1: Okay, and you mentioned it brought structure to Kubernetes management.
- 4:47Speaker 2: Yeah, Before tools like rgo CD, managing all the differ
- 4:50Speaker 2: Kubernetes pieces to deployment services can fig maps could be
- 4:53Speaker 2: a bit.
- 4:54Speaker 1: Loose, right, just a bunch of Yamo files.
- 4:56Speaker 2: Rgo CD introduced the concept of an ARGOCD application. Think
- 5:00Speaker 2: of it as an atomic unit of work. It bundles
- 5:03Speaker 2: everything related to your app, the deployment, the service, ingress,
- 5:07Speaker 2: everything into one manageable thing.
- 5:08Speaker 1: So deployments become more coherent, audible, automated exactly.
- 5:12Speaker 2: You're dealing with the whole application picture at once.
- 5:15Speaker 1: And it's flexible too, right, not just for strict geit ops.
- 5:18Speaker 2: That's true. The book points out it can function as
- 5:20Speaker 2: a general purpose deployment tool even if you're not doing
- 5:22Speaker 2: full git ops yet, and it integrates nicely with tools
- 5:26Speaker 2: people already use like Helm and customize. We'll get into
- 5:29Speaker 2: those more cool.
- 5:30Speaker 1: So it's adaptable. Let's maybe peel back the layers a bit.
- 5:33Speaker 1: What's the architecture look like under the hood.
- 5:35Speaker 2: Sure, so RGOCD itself follows on Microservice's architecture. Is made
- 5:39Speaker 2: up of several smaller independent components working together.
- 5:43Speaker 1: Okay, typical cloud native design, right.
- 5:45Speaker 2: And it leans heavily on Kubernetes primitives. It uses Kubernetes
- 5:49Speaker 2: concepts effectively. What's really fundamental is how it implements the
- 5:52Speaker 2: Kubernetes controller pattern.
- 5:54Speaker 1: Ah, the reconciliation loop idea again exactly.
- 5:58Speaker 2: Just like built in Kubernetes controllers watch resources, rg CD
- 6:01Speaker 2: watches two things, the desired state and get and the
- 6:05Speaker 2: actual spate in your clusters.
- 6:07Speaker 1: If there's a difference, it steps in and enforces the
- 6:10Speaker 1: get state prevents that.
- 6:12Speaker 2: Drift precisely, it's constantly reconciling.
- 6:14Speaker 1: So what are the main components doing this work?
- 6:16Speaker 2: Okay, First, you have the repository server. Its job is
- 6:20Speaker 2: to maintain a local cache of your Git repos or
- 6:23Speaker 2: Helm chart sources casing for speed yep, and then it
- 6:26Speaker 2: generates the final Kubernetes manifests from whatever source you're using,
- 6:30Speaker 2: Helm customized plane YAML.
- 6:32Speaker 1: It preps the manifests, got it manifest prep station what else?
- 6:36Speaker 2: Then there's the API server. This is the main hub.
- 6:38Speaker 2: It uses gRPC and rest pretty standard stuff for communication,
- 6:42Speaker 2: and this manages everything really application status, triggering, sinks, handling, RBAC,
- 6:47Speaker 2: role based access control, you know who can do what,
- 6:50Speaker 2: and it also serves the web UI.
- 6:52Speaker 1: The user interface runs off This API server.
- 6:54Speaker 2: Makes sense, but for cashing it uses rehttis.
- 6:57Speaker 1: Reddus okay, fast in memory database.
- 6:59Speaker 2: Right is it for local caching to speed things up,
- 7:02Speaker 2: reduce calls to get and store some temporary state. Important
- 7:05Speaker 2: note though this redd as cache isn't persistent. If rgo
- 7:09Speaker 2: CV restarts, it rebuilds the cash.
- 7:11Speaker 1: From get good to know not a permanent data store.
- 7:14Speaker 2: And finally, finally, a really key part its own custom
- 7:18Speaker 2: resources or crds. These extend Kubernetes itself. Rgo CD adds
- 7:25Speaker 2: things like application at project and application set.
- 7:28Speaker 1: So you manage rgo CD deployments using these Kubernetes native
- 7:31Speaker 1: objects exactly.
- 7:32Speaker 2: These crds become your main way of interacting with rgo
- 7:35Speaker 2: CD and defining your gitups deployments within Kubernetes itself.
- 7:39Speaker 1: Very cool. Okay, so how do you actually get this
- 7:41Speaker 1: thing running and start using it?
- 7:43Speaker 2: Installation is pretty standard Kupernettes stuff. You can use the
- 7:46Speaker 2: raw yamal manifests they provide our helm or yeah, more
- 7:49Speaker 2: commonly these days helm charts. The book guides you through
- 7:52Speaker 2: setting it up into local kind cluster Kubernettes in Docker,
- 7:56Speaker 2: which is great for just playing around.
- 7:58Speaker 1: And learning and interacting with it. I hear the UI
- 8:00Speaker 1: is quite good, it really is.
- 8:01Speaker 2: The user interface gives you a great visual overview. You
- 8:04Speaker 2: can see what apps are doing, theirs, SINC, datas, health,
- 8:07Speaker 2: managed settings. It's very user friendly.
- 8:09Speaker 1: How do you access it? Initially?
- 8:11Speaker 2: You can start with cubictol PORTFOD, just a tunnel into
- 8:13Speaker 2: it quickly, but for anything more permanent, you'd set up
- 8:16Speaker 2: a proper Kubernetes ingress to give it a real host
- 8:19Speaker 2: name like rgo CD dot, your domain, dot.
- 8:21Speaker 1: Local or something right, make it accessible like a normal
- 8:23Speaker 1: web app. What about the command line.
- 8:25Speaker 2: Yep, there's the rg CDCLI tool. It actually offers more
- 8:28Speaker 2: functionality than the UI, sometimes hitting the same back end API.
- 8:33Speaker 2: It's where you do more advanced things like adding remote
- 8:36Speaker 2: clusters declaratively.
- 8:37Speaker 1: UI for visuals, CLI for power users, and automation. But
- 8:42Speaker 1: here's the really neat getops part I read about. You
- 8:45Speaker 1: manage rgo CD itself declaratively.
- 8:48Speaker 2: Yes, this is super elegant. Rgo CD's own configuration like
- 8:52Speaker 2: connection details for get, rebos, security settings, UI tweaks is
- 8:56Speaker 2: stored in standard Kubernetes confct maps and secrets.
- 8:58Speaker 1: So you can put rgo CD can fig in get
- 9:01Speaker 1: and have ARGOCD apply its own can fig using.
- 9:04Speaker 2: GetUp exactly, it manages itself. You define its configuration, declaratively
- 9:08Speaker 2: commit it, and rgo CD picks it up and reconfigures itself.
- 9:11Speaker 2: It's get oops all the way down.
- 9:13Speaker 1: That is elegant. Okay, let's get to the heart of it,
- 9:16Speaker 1: managing and synchronizing actual applications. This application CRD seems key.
- 9:22Speaker 2: It is an rgo CD application is basically a pointer.
- 9:25Speaker 2: It tells ARGOCD about a set of Kubernetes resources that
- 9:29Speaker 2: belong together. It primarily defines two things.
- 9:31Speaker 1: What are those?
- 9:32Speaker 2: First? The dot sbec dot source. This is where the
- 9:35Speaker 2: manifests live, usually a get repo URL, maybe a specific
- 9:38Speaker 2: branch or tag and a path within that repo.
- 9:40Speaker 1: Okay, where the blueprint is right.
- 9:42Speaker 2: And interestingly, newer versions like V two point six onwards
- 9:46Speaker 2: support multisource applications.
- 9:48Speaker 1: Oh what does that mean?
- 9:49Speaker 2: It means you can pull manifests from multiple sources like
- 9:52Speaker 2: maybe your main app deployment from one get repo, but
- 9:55Speaker 2: it's database configuration from another, and combine them into a
- 9:58Speaker 2: single rgo CD application. Really powerful for complex setups.
- 10:02Speaker 1: Okay, that's the source.
- 10:03Speaker 2: What's the second part, the dot spec dot destination. This
- 10:06Speaker 2: just tells our docd where to deploy those manifests, which
- 10:10Speaker 2: Kubernetes cluster and which namespace within that cluster could be.
- 10:13Speaker 1: The same cluster rgo CD is running on or different one.
- 10:16Speaker 2: Yep, you can specify in cluster for the local cluster
- 10:19Speaker 2: or provide the API server address for a remote cluster.
- 10:23Speaker 1: And to manage the actual YAML complexity you mentioned, helm.
- 10:26Speaker 2: And customize absolutely. You rarely want to be just copying
- 10:29Speaker 2: and pasting raw YAML everywhere. RGOCD has first class support
- 10:33Speaker 2: for Helm, which is kind of the standard package manager
- 10:35Speaker 2: for Kubernetes.
- 10:36Speaker 1: Now right for templating and managing dependencies, and.
- 10:39Speaker 2: Also Customize, which is great for applying environment specific patches
- 10:43Speaker 2: or variations to base manifests without actually changing the original files.
- 10:48Speaker 1: You use bases and overlays, so RGOCD works with these
- 10:50Speaker 1: tools to render the final manifests before applying them exactly.
- 10:55Speaker 2: It uses the repository server component we talked about to
- 10:57Speaker 2: run Helm or customize base on your applications tech.
- 11:01Speaker 1: Okay, now the magic part synchronization. You said by default
- 11:05Speaker 1: nothing happens when you create an application.
- 11:07Speaker 2: Correct, and this is surprising but also really important. By default,
- 11:11Speaker 2: creating an application resource just registers it with rgo CD.
- 11:15Speaker 2: It doesn't actually apply anything to your cluster yet it
- 11:18Speaker 2: gives you a chance to review. You can look in
- 11:20Speaker 2: the UI see what argocd would deploy and make sure
- 11:23Speaker 2: it looks right before you manually click sink or enable automation.
- 11:27Speaker 2: It's a safety net.
- 11:28Speaker 1: Ah okay, a deliberate pause, but you can automate it. Oh.
- 11:32Speaker 2: Yes, you define a SINK policy in the application manifest.
- 11:35Speaker 2: This lets you turn on automated.
- 11:36Speaker 1: SINC And what options do you have there.
- 11:38Speaker 2: Key ones are pune true, which tells RGOCD to automatically
- 11:43Speaker 2: delete resources from the cluster if they're removed from get
- 11:46Speaker 2: garbage collection.
- 11:47Speaker 1: Essentially important for keeping things clean, and.
- 11:49Speaker 2: Self heal true this tells RGCD to automatically fix any
- 11:54Speaker 2: drifted to texts. If someone manually changes something in the cluster,
- 11:58Speaker 2: self heal will revert it back.
- 11:59Speaker 1: To the gets stay so truly, enforcing that get source of.
- 12:03Speaker 2: Truth exactly the thing. Policy also lets you set up
- 12:06Speaker 2: retry strategies. If a sinc fails with backoffs and.
- 12:08Speaker 1: Limits, what about controlling things at a finer grain than
- 12:12Speaker 1: the whole application you.
- 12:13Speaker 2: Can You can use Kubernetes annotations directly on individual resource
- 12:17Speaker 2: manifests in get what. For instance, you might annotate a
- 12:21Speaker 2: persistent volume claim with rgocd dot rgoprojei dot iosinc options
- 12:26Speaker 2: prune false to prevent argo CD from ever deleting it
- 12:30Speaker 2: even if it's removed.
- 12:31Speaker 1: From gitt ah protecting stateful things right.
- 12:34Speaker 2: Or there's skip dry run and missing resource true, which
- 12:37Speaker 2: can be useful if your application installs its own crds
- 12:40Speaker 2: or operators. Sometimes the dry run fails initially because the
- 12:43Speaker 2: CRD isn't there yet, So this lets you bypass that
- 12:46Speaker 2: check for specific resources.
- 12:48Speaker 1: Okay, annotations for fine tuning. What about running tasks during
- 12:51Speaker 1: SINC like database migrations.
- 12:54Speaker 2: That's where hooks come in. RGOCD lets you define Kubernetes
- 12:57Speaker 2: jobs or pods as hooks that run its specif points
- 13:00Speaker 2: in the sync life cycle.
- 13:01Speaker 1: When would you use those?
- 13:02Speaker 2: You have precinc hooks that run before anything else sincoks
- 13:05Speaker 2: during the main sync, post sync, after a successful sink,
- 13:08Speaker 2: sink fail if it bombs out, and even post.
- 13:10Speaker 1: Delete, so post sync would be perfect for database migrations,
- 13:13Speaker 1: apply the new app code, then run the migration job exactly.
- 13:17Speaker 2: Or precinc could be used to say take a database
- 13:19Speaker 2: backup before and upgrade. Very powerful automation.
- 13:22Speaker 1: And for really complex apps with lots of dependencies, how
- 13:26Speaker 1: do you manage the order?
- 13:27Speaker 2: That's where sink waves are incredibly useful. Sometimes you need
- 13:30Speaker 2: resource a like a database, to be fully up and
- 13:33Speaker 2: running before resource b your application starts.
- 13:36Speaker 1: Right dependencies, sink waves.
- 13:38Speaker 2: Let you assign numerical waves to your resources using annotations.
- 13:42Speaker 2: RGCD applies resources in wave order, waiting for resources in
- 13:46Speaker 2: one wave to become healthy before starting the next wave zero,
- 13:49Speaker 2: then wave one, wave two, and so on.
- 13:51Speaker 1: Ah, so you can orchestrate complex rollouts precisely.
- 13:55Speaker 2: Precisely. It prevents things from failing just because of dependency
- 13:58Speaker 2: wasn't ready yet.
- 13:59Speaker 1: One more sinc thing. Ignoring differences Sometimes the live state
- 14:02Speaker 1: should be different, right, like with autoscaling.
- 14:04Speaker 2: Good point. Yes, rgo CD lets you configure it to
- 14:07Speaker 2: ignore specific differences. Maybe you have a horizontal pod autoscaler
- 14:12Speaker 2: managing the replica's count of a deployment. You don't want
- 14:15Speaker 2: rgo CD fighting with the HPA, so.
- 14:17Speaker 1: You tell RGOCD, hey ignore changes to spec Dot replicas
- 14:20Speaker 1: for this deployment exactly.
- 14:22Speaker 2: You can configure these ignores at the application level or
- 14:24Speaker 2: even globally for certain resource types or specific JSON paths
- 14:29Speaker 2: across your whole RGOCD instance. Very flexible.
- 14:32Speaker 1: Okay, makes sense. Now what about application health? How does
- 14:36Speaker 1: rgo CD know if a deployment actually worked?
- 14:39Speaker 2: It relies heavily on kubernators built in health checks. This
- 14:43Speaker 2: means defining proper readiness and liveness probes in your deployments
- 14:46Speaker 2: in state ful sets is absolutely critical.
- 14:49Speaker 1: Because RGOCD uses those probe statuses to decide if a
- 14:52Speaker 1: resource and therefore the whole application is healthy exactly if
- 14:57Speaker 1: your probes aren't set up correctly, rgo CD might think
- 15:00Speaker 1: app is healthy when it's not, or vice versa.
- 15:02Speaker 2: Good probes are fundamental to reliable get ops.
- 15:05Speaker 1: Does argo CD add its own health checks too?
- 15:07Speaker 2: It does for many standard Kubernetes resource types. It has
- 15:11Speaker 2: built in logic to understand the health of deployments, services,
- 15:14Speaker 2: stateful sets, etc. However, there's a catch. Oh a surprising fact, Yeah,
- 15:19Speaker 2: surprising faction. In the book, the built in health check
- 15:22Speaker 2: for rgo CD's own application CRD was actually removed by
- 15:26Speaker 2: default back in argo CD version one point eight.
- 15:28Speaker 1: Wait, why would they do that and why does it matter?
- 15:30Speaker 2: It matters if you're doing complex orchestrations where one rgo
- 15:34Speaker 2: CD application needs to know if another argo CD application
- 15:37Speaker 2: is healthy before it proceeds, like in the app of
- 15:39Speaker 2: apps pattern we might discuss.
- 15:41Speaker 1: Ah, So if you need applications to depend on each
- 15:43Speaker 1: other's health, you need.
- 15:44Speaker 2: To explicitly re enable that application health check in the
- 15:47Speaker 2: main argo CD configment rgo CD cny it's off by default,
- 15:51Speaker 2: which can trip people up when building those advanced workflows.
- 15:54Speaker 1: Good tip. Okay, let's shift gears to more advanced topics
- 15:58Speaker 1: operationalizing this stuff. Authentication and authorization seem crucial.
- 16:02Speaker 2: Absolutely out of the box, RGCD gives you a single
- 16:06Speaker 2: admin user. The initial password is in a Kubernet.
- 16:09Speaker 1: Seekert change it immediately, yes, please?
- 16:11Speaker 2: Then you can define additional local users. But more realistically,
- 16:15Speaker 2: in an enterprise setup, you'll integrate with single sign on sso.
- 16:18Speaker 1: Like using Octa or Google Workspace or something exactly.
- 16:22Speaker 2: Rgo CD supports standard protocols like openetd Connect, ODC, or
- 16:26Speaker 2: you can use an identity broker like decks, which can
- 16:29Speaker 2: then connect to LDFP, SAML, get up whatever your company uses.
- 16:33Speaker 2: The book uses key cloak as an example of you decks.
- 16:36Speaker 1: Okay, so users log in with their normal company credentials.
- 16:39Speaker 1: What about what they can do once logged in.
- 16:42Speaker 2: That's where rg CDs built in RBAC comes in. Role
- 16:45Speaker 2: based access control. It governs permissions.
- 16:48Speaker 1: Does it have default roles?
- 16:50Speaker 2: Yes? It starts with a powerful role Dot admin and
- 16:53Speaker 2: a useful role dot readily, but you can define your
- 16:56Speaker 2: own custom roles using simple CSD policies stored in configmap.
- 17:00Speaker 1: So you can get really granular, like this team can
- 17:03Speaker 1: only deploy to the devname space.
- 17:04Speaker 2: Precisely, and that leads into projects or app project resources.
- 17:09Speaker 2: These are fundamental for multi tenancy or just organizing things.
- 17:13Speaker 1: Let do projects control.
- 17:15Speaker 2: They act as logical groupings for applications. Crucially, they let
- 17:19Speaker 2: administrators restrict things within that.
- 17:21Speaker 1: Group, like what kind of restrictions you can.
- 17:23Speaker 2: Restrict which get repositories applications in that project are like
- 17:26Speaker 2: to pull.
- 17:27Speaker 1: From AH security boundaries.
- 17:28Speaker 2: Exactly which destination clusters or name spaces they can deploy to.
- 17:32Speaker 2: You can even blacklist or whitelist specific kinds of Kubernetes resources,
- 17:36Speaker 2: maybe disallow creating cluster rolls from a certain project.
- 17:40Speaker 1: Wow. Okay, So projects are like security and policy sandboxes
- 17:43Speaker 1: for groups of applications.
- 17:45Speaker 2: Yep, and you assign permissions which users or sso groups
- 17:49Speaker 2: can access the project and what roles they have at
- 17:52Speaker 2: the project level too.
- 17:53Speaker 1: There's also something called applications sinc impersonation that sounds important
- 17:57Speaker 1: for security.
- 17:58Speaker 2: It is, and it's relatively new from v two point
- 18:00Speaker 2: one four onwards. It lets you specify a different Kumbinaties
- 18:04Speaker 2: service account for RGOCD to use what it actually applies
- 18:07Speaker 2: manifest to a cluster for a specific application.
- 18:11Speaker 1: Why is that better than ARGOCD just using its own
- 18:13Speaker 1: default service account.
- 18:14Speaker 2: Principle of least privilege, the default argo CD service account
- 18:18Speaker 2: often needs fairly broad permissions to manage crds and things.
- 18:22Speaker 2: By using impersonation, you can create a dedicated service account
- 18:25Speaker 2: for an application that only has permissions to manage deployments
- 18:28Speaker 2: and services in the specific name space. For example.
- 18:31Speaker 1: Ah so, even if the main RGO CD controller was
- 18:34Speaker 1: somehow compromised, the blast radius for what it could do
- 18:37Speaker 1: during a sink is much smaller.
- 18:39Speaker 2: Exactly, it decouples the control planes permissions from the sink
- 18:42Speaker 2: execution permissions. Big security win makes sense.
- 18:46Speaker 1: Okay, what about managing multiple clusters? How does that work?
- 18:50Speaker 2: RGOCD uses a hub and spoke model. Your main RGO
- 18:53Speaker 2: CD installation is the hub. It then manages deployments out
- 18:57Speaker 2: to potentially many spoke clusters.
- 18:59Speaker 1: The control plane is centralized generally.
- 19:02Speaker 2: Yes, the hub pushes or more accurately applies the configurations
- 19:07Speaker 2: defined in get out to the managed clusters.
- 19:09Speaker 1: How do you add those remote clusters?
- 19:11Speaker 2: You can use the rgo CLI. There's a command like
- 19:14Speaker 2: rgo sed cluster ad or more get up style. You
- 19:17Speaker 2: can define the cluster connection details. API server endpoint credentials
- 19:22Speaker 2: within a kubernating secret and apply that secret to the
- 19:25Speaker 2: rgo CD control plane cluster.
- 19:27Speaker 1: So the cluster definitions themselves live in geit.
- 19:30Speaker 2: Yep RGOCD watches for secrets labeled correctly and automatically adds
- 19:34Speaker 2: them as managed clusters.
- 19:35Speaker 1: Okay, so you have multiple clusters defined. How do you
- 19:38Speaker 1: deploy the same app to multiple clusters? And application CRD
- 19:41Speaker 1: only points to one destination?
- 19:42Speaker 2: Right, correct? A single application resource maps one source to
- 19:46Speaker 2: one destination, but there are patterns for deploying to many.
- 19:49Speaker 2: First is the app of apps pattern.
- 19:51Speaker 1: App of apps? What's that?
- 19:52Speaker 2: It's basically an rgo CD application whose source git rebo
- 19:57Speaker 2: contains manifests for other rgo CD applicants meta.
- 20:01Speaker 1: So one application deploys more application Exactly.
- 20:05Speaker 2: You might have a staging apps application that deploys the
- 20:07Speaker 2: specific application resources for your AP service, staging front and staging,
- 20:12Speaker 2: et cetera. It's great for boost wrapping environments or managing
- 20:15Speaker 2: application stacks together.
- 20:16Speaker 1: Clever, what's the other way?
- 20:18Speaker 2: Application sets? These are designed specifically for this multi deployment scenario.
- 20:24Speaker 2: Think of an application set as an application factory. A
- 20:27Speaker 2: factory you define an application set with a template for
- 20:30Speaker 2: an rgo CD application, but you leave parts like the
- 20:33Speaker 2: destination cluster or namespace dynamic. Then you use a generator
- 20:37Speaker 2: generators like what for several A list generator lets you
- 20:40Speaker 2: just provide a static list of clusters or parameters. A
- 20:43Speaker 2: cluster generator automatically finds all the clusters registered with rgocd
- 20:47Speaker 2: and creates an application for each. There's even an sem
- 20:50Speaker 2: provider generator that can look at your Git hosting like
- 20:52Speaker 2: GitHub git lab and create applications based on folders or branches.
- 20:56Speaker 1: It finds wow, so application sets automate creating many so
- 21:00Speaker 1: smilar applications targeted at different places. Very useful for platform teams.
- 21:04Speaker 2: Hugely useful, reduces boilerplate can figure dramatically.
- 21:07Speaker 1: Let's stock more security TLS certificates, connecting to private Git
- 21:11Speaker 1: repos critical stuff.
- 21:14Speaker 2: Rgocd obviously supports configuring TLS for its own EPI server
- 21:18Speaker 2: and UI. You can bring your own CERTs or generate
- 21:21Speaker 2: self signed ones. It also handles connecting securely to get repositories.
- 21:25Speaker 2: How for HTTPS repos you can store credentials like username, password,
- 21:29Speaker 2: or access tokens in Kubernetes. Secrets that rg CD is
- 21:33Speaker 2: configured to use for SSH. You sort the private key
- 21:36Speaker 2: in a secret and configure the known host entries again,
- 21:39Speaker 2: usually via rgo CD's configureent secrets managed.
- 21:42Speaker 1: Via git ops Okay, standard secure connection methods. What about
- 21:45Speaker 1: verifying the commits themselves?
- 21:47Speaker 2: Yes, for extra assurance, you can enable get commit signature
- 21:49Speaker 2: verification using GTG gpgkeys, so.
- 21:53Speaker 1: Argo City checks if the commit was signed by a
- 21:55Speaker 1: trusted developer key before sinking.
- 21:57Speaker 2: Exactly, you can figure rgo CD with the public keys
- 22:00Speaker 2: of your trusted committers. If a commit in the tracked
- 22:03Speaker 2: branch isn't signed or is signed by an unknown key,
- 22:06Speaker 2: rgo CD can refuse to sink it. It ensures code.
- 22:09Speaker 1: Provenance, important for regulated environments or just high trust. Okay,
- 22:13Speaker 1: scaling this up monitoring essential.
- 22:16Speaker 2: You absolutely should integrate rgo CD with Prometheus for metrics
- 22:19Speaker 2: collection and Grafana for visualization.
- 22:22Speaker 1: What kind of metrics do you get?
- 22:23Speaker 2: You get metrics about argocd itself, CPU memory, usage of
- 22:27Speaker 2: its components, API requests, latency, number of applications being managed,
- 22:32Speaker 2: but also crucial metrics about SINC operations, how many sinks
- 22:36Speaker 2: are happening, how long they take, success failure rates, it
- 22:40Speaker 2: gives you operational visibility beyond just your own app metrics.
- 22:43Speaker 1: And getting alerted when things go wrong.
- 22:45Speaker 2: That's where RGCD notifications comes in. It's an optional but
- 22:48Speaker 2: highly recommended component. It watches rgo CD.
- 22:50Speaker 1: Events like sync failed or an app became unhealthy.
- 22:54Speaker 2: Sync success failure, health degradation, sink starting, lots of triggers.
- 23:00Speaker 2: Can then send nicely formatted notifications to slack matter, most
- 23:04Speaker 2: email page, your duty teams, you name. It keeps everyone
- 23:07Speaker 2: in the loop automatically. Very handy.
- 23:09Speaker 1: What about keeping rgo CD itself reliable? High availability definitely
- 23:13Speaker 1: needed for production.
- 23:14Speaker 2: Rgocd's components, the API server, reposerver, application controller are designed
- 23:19Speaker 2: to run with multiple replicas for high availability BJA. If
- 23:23Speaker 2: one pod dies, another takes over. You typically manage this
- 23:27Speaker 2: with standard Kubernetes deployments and potentially horizontal pod autoscalers.
- 23:31Speaker 1: And if you have thousands of applications, can one controller
- 23:34Speaker 1: handle all that reconciliation It.
- 23:36Speaker 2: Can become a bottleneck for really large scale RGOCD supports
- 23:40Speaker 2: charding the application.
- 23:41Speaker 1: Controller starting splitting the work exactly.
- 23:44Speaker 2: You can run multiple replicas of the controller and rgo
- 23:46Speaker 2: CD will automatically distribute the applications across them. Based on
- 23:50Speaker 2: a hashing algorithm, each controller instance only manages a subset
- 23:53Speaker 2: of the total applications. This prevents one controller from becoming
- 23:56Speaker 2: a hotspot and improves overall sync throughput okay.
- 24:00Speaker 1: Jay and scharding for scale. Can you extend rgo CD's
- 24:03Speaker 1: functionality if it doesn't support your specific tools out of
- 24:06Speaker 1: the box.
- 24:07Speaker 2: Yes, through config management plugins CMPs. Let's say you have
- 24:11Speaker 2: some customs scripting process to generate your Yamel or maybe
- 24:14Speaker 2: you use a less common tool.
- 24:16Speaker 1: You can teach rgo CD how to use.
- 24:17Speaker 2: It pretty much. If you package your tool or script
- 24:20Speaker 2: into a container image to find how RGOCD should call
- 24:23Speaker 2: it in the RGCD s endemioconfigmap and rgo CD's repository
- 24:27Speaker 2: server will run your plug in in a sidecar container
- 24:30Speaker 2: to generate the manifests. It's very flexible.
- 24:33Speaker 1: Nice. What about customizing the look and feel of the UI.
- 24:36Speaker 2: You can do that too. You could apply custom CSS
- 24:38Speaker 2: style sheets to change colors, fonts, layout, maybe make the
- 24:42Speaker 2: top bar red in your production. Rgo CD instances as
- 24:44Speaker 2: a visual cue.
- 24:45Speaker 1: Simple but effective. Can you add new UI elements?
- 24:48Speaker 2: Yes? Through UI extensions. These are more involved. You basically
- 24:51Speaker 2: build custom react components that get loaded into the RGO CDUI.
- 24:55Speaker 2: You could use this to add buttons that trigger external
- 24:57Speaker 2: actions or display information from other systems right within the
- 25:01Speaker 2: RGO CD interface.
- 25:02Speaker 1: Cool. Last major area integration with CI. How does rgocd
- 25:08Speaker 1: fit into the broader CICD pipeline.
- 25:10Speaker 2: Good question. We mentioned The reconciliation loop runs periodically, maybe
- 25:14Speaker 2: every three minutes by default, but often you want changes
- 25:18Speaker 2: deployed faster.
- 25:19Speaker 1: Right as soon as they merge to maine.
- 25:21Speaker 2: That's where web hooks come in. You can figure get GitHub,
- 25:24Speaker 2: get lab, et cetera to send a webook notification to
- 25:27Speaker 2: argocd whenever there's a push to the track branch. Rgo
- 25:30Speaker 2: CD can then immediately trigger a refresh and sink if needed.
- 25:33Speaker 2: It provides that on demand synchronization, so.
- 25:36Speaker 1: You get the continuous reconciliation and fast updates via web hooks.
- 25:40Speaker 2: Best of both worlds. And you can integrate this further,
- 25:42Speaker 2: maybe your CI process using something like Tecton pipelines.
- 25:45Speaker 1: Tecton the Kubernetes native CICD tool.
- 25:48Speaker 2: Right your Tecton pipeline could run tests, lynch your manifests,
- 25:52Speaker 2: maybe build an image and then as a final step.
- 25:54Speaker 2: After everything passes, it merges the change, which then triggers
- 25:57Speaker 2: the RGO CD web hoook.
- 25:58Speaker 1: So CI handles the validation before getaps takes over for
- 26:01Speaker 1: deployment exactly.
- 26:03Speaker 2: You can even have tech ton directly interact with the
- 26:06Speaker 2: RGO CD API if needed. Technon triggers can listen forget
- 26:09Speaker 2: events to start these pipelines automatically. It creates a really robust,
- 26:14Speaker 2: fully automated flow from code commit to running.
- 26:16Speaker 1: In the cluster that paints a really comprehensive picture looking ahead.
- 26:20Speaker 1: What are some ongoing discussions or future considerations in the
- 26:24Speaker 1: getop space.
- 26:25Speaker 2: One big one, especially for organizations starting out, is getops
- 26:29Speaker 2: directory structures. How should you actually organize your repositories?
- 26:33Speaker 1: Is there one right answer?
- 26:35Speaker 2: Not really? The book mentions it often comes down to
- 26:38Speaker 2: Conway's law. Your org structure influences your system design. Some
- 26:43Speaker 2: for poly repos maybe one repo for the cluster platform
- 26:46Speaker 2: stuff and separate reapers for each application. Others go for
- 26:49Speaker 2: large monerapos containing everything.
- 26:51Speaker 1: Pros and cons to both.
- 26:52Speaker 2: I imagine definitely CALLI repos give teams more autonomy, but
- 26:56Speaker 2: can be harder to coordinate. LONO repos make cross cutting
- 26:58Speaker 2: changes easier, but require more tooling and discipline.
- 27:01Speaker 1: What about storing rendered manifests you mentioned that earlier, Yes.
- 27:05Speaker 2: The rendered manifest pattern. Instead of rgo CD pulling helm
- 27:09Speaker 2: charts or customized bases and rendering them.
- 27:12Speaker 1: On the fly, you pre render them in your CI
- 27:14Speaker 1: pipeline and commit the final YAML to get exactly.
- 27:18Speaker 2: The benefit is absolute clarity. What's in GET is exactly
- 27:22Speaker 2: what rgo CD will apply. No surprises from template rendering
- 27:26Speaker 2: logic changing between environments. It makes auditing and diffing much simpler.
- 27:31Speaker 1: Interesting trade off, more CI work, but simpler.
- 27:33Speaker 2: Geit ops state right and related to get structure is
- 27:36Speaker 2: the recommended GitOps workflow. The book strangly advocates for trunk
- 27:40Speaker 2: based development as.
- 27:41Speaker 1: Opposed to something like gitflow with long lived develop staging
- 27:45Speaker 1: main branches.
- 27:46Speaker 2: Yes, the problem with long lived environment branches in a
- 27:49Speaker 2: geitops world is that environment specific configuration like replica accounts
- 27:53Speaker 2: or URLs tends to diverge. Merging between these branches becomes
- 27:57Speaker 2: a nightmare, ah.
- 27:58Speaker 1: Because you don't want stagings can fig merged into production exactly.
- 28:02Speaker 1: Trunk based development where changes flow quickly to the main
- 28:05Speaker 1: branch and configuration differences are handled by tools like Customize
- 28:09Speaker 1: or helm values outside of Git. Branching generally works much
- 28:12Speaker 1: better with the gt ops model.
- 28:13Speaker 2: Good practical advice Where can people go to learn more
- 28:17Speaker 2: or get involved?
- 28:18Speaker 1: The community is really active. The CNCF slack has hashtag
- 28:21Speaker 1: giittops and hashtag rgo CD channels, which are great places
- 28:25Speaker 1: to ask questions.
- 28:26Speaker 2: Okay, CNCs slack.
- 28:27Speaker 1: Attending the public Argo project community meetings online is also
- 28:31Speaker 1: a good way to see what's happening and check out
- 28:32Speaker 1: projects incubating in Argo project labs. Likewise, there's the rgo
- 28:36Speaker 1: CD image updater, which helps automate updating container image tags
- 28:40Speaker 1: and get and a newer, more holistic project called cargo
- 28:44Speaker 1: is emerging focused on orchestrating promotions and progressive delivery across
- 28:48Speaker 1: different stages in a geit ops environment. It looks very promising.
- 28:52Speaker 2: Lot's happening. Okay, let's try to wrap this up. We've
- 28:54Speaker 2: really unpacked rgo CD and get ops today from weave workes,
- 28:58Speaker 2: fat finger origin story, the core git ups principles.
- 29:01Speaker 1: Declarative version pulled reconciled to rg CD's architecture, the controller pattern,
- 29:07Speaker 1: how you interact via UI and CLI managing applications with sources, destinations,
- 29:13Speaker 1: sink policies, hooks, waves.
- 29:15Speaker 2: All the way to advance topics like security, multi cluster
- 29:19Speaker 2: with apsets, ha charding extensibility.
- 29:22Speaker 1: Right, you should now have a really solid foundation. This
- 29:25Speaker 1: deep dive gives you that understanding of how it all
- 29:28Speaker 1: clicks together.
- 29:29Speaker 2: You've definitely got more than just the buzzwords, now practical insights,
- 29:32Speaker 2: some of those surprising details like the application health check
- 29:35Speaker 2: default hopefully helping you navigate get ups with more confidence.
- 29:39Speaker 1: So here's a final thought to leave you with. If
- 29:41Speaker 1: GIT truly becomes the single source of truth for our
- 29:43Speaker 1: system's desired state, how might that change the way we
- 29:47Speaker 1: think about all kinds of operational changes in our organizations
- 29:51Speaker 1: beyond just application deployments. What else could we managed declaratively
- 29:55Speaker 1: via get It's.
- 29:56Speaker 2: A powerful shift in thinking, moving from imperative actions to
- 29:59Speaker 2: declare of state management. Definitely something to moll over. And
- 30:02Speaker 2: of course check out the book rg CD up and
- 30:04Speaker 2: Running for even more detail and engage with that vibrant
- 30:07Speaker 2: GitOps community.
- 30:09Speaker 1: Absolutely, there's always more to explore. Thanks for joining us
- 30:12Speaker 1: on the deep dive.