Operating Kubernetes Utilities: GitOps-based Add-on Management
Day-2 cluster operations begin with a consistent code-managed approach to shared Utilities, not application deployment alone.
Overview
Section titled “Overview”Once a Kubernetes cluster is up, deploying applications alone isn’t enough for stable, scalable operations. Automating and standardizing operations (monitoring, certificate management, logging, backup) through a proper Utility configuration is essential. This article covers Kubernetes Utility configuration, a performance testing approach, and a backup strategy for Cloud/Kubernetes resources.
Kubernetes Utility Configuration
Section titled “Kubernetes Utility Configuration”Why it matters
Section titled “Why it matters”If the Kubernetes environment itself was built with IaC (Infrastructure as Code), the applications and services deployed on top of it should be managed as code too. This is where a GitOps tool like Argo CD earns its place. Implementing an App of Apps pattern with Argo CD to manage the whole application deployment pipeline brings several benefits.
- Operational consistency: managing not just the infrastructure but the cluster’s internal resource configuration as code makes changes traceable and simplifies collaboration and maintenance.
- IaC and GitOps together: the cluster itself is provisioned with IaC tools like Terraform or Bicep, while in-cluster applications and Utilities are managed GitOps-style through Argo CD. Applying the App of Apps pattern gives you centralized operations.
- Stronger operational automation and incident response: Utilities give real-time visibility into system state and let you diagnose and respond to incidents quickly.
- Environment-specific configuration: structuring things so different Utilities can be selectively deployed per environment (Dev, QA, Prod) keeps the setup flexible.
Key Kubernetes Utilities
Section titled “Key Kubernetes Utilities”-
Argo CD: a GitOps-based CD (Continuous Deployment) tool that continuously reconciles application state defined in a Git repo with actual cluster state. The App of Apps pattern lets it manage the deployment of many applications hierarchically.
-
cert-manager: automatically obtains, manages, and renews TLS certificates inside Kubernetes. It integrates with certificate authorities like Let’s Encrypt to renew certificates automatically before expiry.
-
Metric Exporter: collects cluster and application performance metrics and ships them to a monitoring system.
-
OpenTelemetry Collector: part of the open-source observability framework; collects, processes, and exports Metric/Log/Trace data.
-
Logging, Monitoring, Tracing, Profiling: Logging (centralized logs for troubleshooting and auditing), Monitoring (real-time performance/status tracking), Tracing (following a request’s path), Profiling (code-level bottleneck analysis).
-
Kubernetes Backup: provides backup and restore for cluster resources, configuration, and data.
-
GitHub Self-hosted Runner: lets GitHub Actions workflows run directly inside the Kubernetes cluster. Useful for CI/CD pipelines with strict security requirements or special hardware needs.
Approach to configuring Utilities
Section titled “Approach to configuring Utilities”Code-based management (Infrastructure as Code)
Every configuration and setting should be managed as code. This gives you an audit trail of changes, version-control-based collaboration, reproducible environments, and automated testing/validation.
Minimize manual CLI work
Manual work through a command-line interface carries a higher risk of human error, is harder to track, is inconsistent across repeated operations, and limits automation/scalability, so it should be minimized.
Separate configuration per environment
Separate Utility configuration for Dev, Test, Staging, Production, and any other environments. This enables resource allocation tuned to each environment’s characteristics, environment-appropriate security policy, staged rollout and testing, and cost optimization.
Design for extensibility and modularity
Modularize the Utility configuration so components can be added or removed easily as needed. This makes it easier to integrate new features/tools, clarifies dependencies between components, and lets you update or replace individual pieces without touching the rest.
Automated testing and validation
Implement automated testing and validation for every configuration change, so misconfigurations are caught early, unexpected side effects are surfaced ahead of time, and safety is confirmed before deployment.
Documentation and knowledge sharing
Thoroughly document everything about the Utility configuration and share it across the team, so new team members can ramp up quickly, troubleshooting is faster, and knowledge doesn’t get siloed in one person.
Reference: commonly used AKS Utilities
Section titled “Reference: commonly used AKS Utilities”Utilities commonly used with Azure Kubernetes Service (AKS) can be grouped by purpose: operations/management, security/policy, monitoring/logging, networking/traffic management, storage/secret management, and scalability/automation. AKS offers a mix of officially supported tools (as Add-ons and Extensions) alongside open-source and third-party tools.
Operations/management
| Tool | Purpose/description | Add-on? |
|---|---|---|
| Metrics Server | Collects cluster resource usage, used by HPA and others | ★ |
| Cluster Autoscaler | Automatically scales nodes up/down | |
| Azure Service Operator | Automates provisioning Azure resources from Kubernetes | Extension |
| Virtual Node | Serverless node scaling via ACI integration | ★ |
| GitOps | Git-based declarative deployment/operations automation | ★ |
Security/policy
| Tool | Purpose/description | Add-on? |
|---|---|---|
| Azure Policy | Policy-based compliance/governance, built on Gatekeeper | ★ |
| Open Policy Agent Gatekeeper | Custom policy (admission control) enforcement | ★ |
| Azure AD Pod Identity | Per-workload Azure AD auth/permission management | ★ |
| Azure Workload Identity | Manages a workload’s identity for Azure resource access | ★ |
Monitoring/logging
| Tool | Purpose/description | Add-on? |
|---|---|---|
| Azure Monitor (Insights) | Cluster/application monitoring, log collection | ★ |
| Managed Prometheus | Prometheus-based monitoring | ★ |
| AKS Periscope | Cluster diagnostics and troubleshooting tool | Extension |
| Image Cleaner | Automatically cleans up unused images | ★ |
Networking/traffic management
| Tool | Purpose/description | Add-on? |
|---|---|---|
| Application Gateway Ingress Controller | Uses Application Gateway as an Ingress | ★ |
| CoreDNS | In-cluster DNS service | ★ |
| Cilium, Calico, Tigera-Operator | CNI network plugins, network policy management | |
| Open Service Mesh | Service mesh (microservice traffic management) | ★ |
Storage/secret management
| Tool | Purpose/description | Add-on? |
|---|---|---|
| Azure Key Vault Secrets Provider | Secret management integrated with Key Vault | ★ |
| CSI Drivers (AzureFile, NFS, SMB) | CSI drivers for various Azure storage integrations | ★ |
| CSI Secrets Store Driver | CSI driver for integrating with external secret stores | ★ |
Scalability/automation
| Tool | Purpose/description | Add-on? |
|---|---|---|
| KEDA | Event-driven autoscaling | ★ |
| GitHub Actions | CI/CD automation, cluster deployment pipelines | |
| Helm | Kubernetes application packaging/deployment tool |
Add-ons are integrated into and managed by the AKS resource provider: AKS itself handles install, upgrade, and lifecycle, guaranteeing operational stability and compatibility. Extensions are managed through a separate resource provider, allowing more customization but leaving operational responsibility to the user. Open-source and third-party tools such as Helm, Istio, and Linkerd can be installed directly, but fall outside AKS’s official support scope.
Reference: an example Utility configuration
Section titled “Reference: an example Utility configuration”The Argo CD Apps setup that manages application deployment integrates with the GitHub Organization via OAuth, and things like Argo CD RBAC settings are managed as manifests. Once configuration is complete, a separate GitHub Actions workflow (Argo CD Apps Operation) is triggered to set up the Argo CD Apps.

Summary
Section titled “Summary”This article covered the purpose, configuration, and AKS examples for Kubernetes Utilities. Next, operate cloud-native performance testing.
Series order
Section titled “Series order”Next: Cloud-native Performance Testing: Operating Locust and k6