Skip to content

Operating Kubernetes Utilities: GitOps-based Add-on Management

Interactive Diagram

새 탭 ↗

Day-2 cluster operations begin with a consistent code-managed approach to shared Utilities, not application deployment alone.

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.

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.
  • 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.

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.

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

ToolPurpose/descriptionAdd-on?
Metrics ServerCollects cluster resource usage, used by HPA and others★
Cluster AutoscalerAutomatically scales nodes up/down
Azure Service OperatorAutomates provisioning Azure resources from KubernetesExtension
Virtual NodeServerless node scaling via ACI integration★
GitOpsGit-based declarative deployment/operations automation★

Security/policy

ToolPurpose/descriptionAdd-on?
Azure PolicyPolicy-based compliance/governance, built on Gatekeeper★
Open Policy Agent GatekeeperCustom policy (admission control) enforcement★
Azure AD Pod IdentityPer-workload Azure AD auth/permission management★
Azure Workload IdentityManages a workload’s identity for Azure resource access★

Monitoring/logging

ToolPurpose/descriptionAdd-on?
Azure Monitor (Insights)Cluster/application monitoring, log collection★
Managed PrometheusPrometheus-based monitoring★
AKS PeriscopeCluster diagnostics and troubleshooting toolExtension
Image CleanerAutomatically cleans up unused images★

Networking/traffic management

ToolPurpose/descriptionAdd-on?
Application Gateway Ingress ControllerUses Application Gateway as an Ingress★
CoreDNSIn-cluster DNS service★
Cilium, Calico, Tigera-OperatorCNI network plugins, network policy management
Open Service MeshService mesh (microservice traffic management)★

Storage/secret management

ToolPurpose/descriptionAdd-on?
Azure Key Vault Secrets ProviderSecret management integrated with Key Vault★
CSI Drivers (AzureFile, NFS, SMB)CSI drivers for various Azure storage integrations★
CSI Secrets Store DriverCSI driver for integrating with external secret stores★

Scalability/automation

ToolPurpose/descriptionAdd-on?
KEDAEvent-driven autoscaling★
GitHub ActionsCI/CD automation, cluster deployment pipelines
HelmKubernetes 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.

This article covered the purpose, configuration, and AKS examples for Kubernetes Utilities. Next, operate cloud-native performance testing.

Next: Cloud-native Performance Testing: Operating Locust and k6