chandana@home:~$

  • Chandana Nawarathna Devops Article

    Jekyll YAML Front Matter layout: post title: “Practical Kubernetes Network Policies: Securing Inter-Workload Communication” date: 2026-12-01 09:00:00 +0530 author: Chandana Nawarathna categories: [DevOps] tags: [kubernetes, network-policies, security, cilium, calico, devops] description: “A practical guide to implementing NetworkPolicies in Kubernetes, covering baseline security, allowing selective traffic, and common patterns with Cilium...

  • OPA Gatekeeper: Enforcing Policy as Code in Kubernetes

    OPA Gatekeeper: Enforcing Policy as Code in Kubernetes When multiple teams share a Kubernetes cluster, resource quotas and limit ranges alone cannot enforce organizational policies — such as prohibiting privileged containers, requiring specific labels, or restricting CIDR ranges. OPA Gatekeeper extends the Kubernetes admission controller framework to validate and mutate...

  • ArgoCD GitOps: Managing Progressive Deployments with Sync Waves and Health Policies

    ArgoCD GitOps: Managing Progressive Deployments with Sync Waves and Health Policies In GitOps workflows, ArgoCD synchronizes the desired state from a Git repository to the Kubernetes cluster. While basic sync works for simple apps, production systems often need progressive delivery — promoting new versions gradually, protecting critical workloads during failures,...

  • Prometheus Alerting Rules: Writing Practical Alerts for Kubernetes

    Prometheus Alerting Rules: Writing Practical Alerts for Kubernetes Prometheus is the de facto monitoring system for Kubernetes, but writing alert rules that fire reliably — without noisy false positives or missed detections — is a skill that takes practice. This article walks through the structure of alerting rules, common patterns...

  • Pod Disruption Budgets: Guaranteeing Availability for Kubernetes Workloads During Updates

    Pod Disruption Budgets: Guaranteeing Availability for Kubernetes Workloads During Updates When you roll out a new version of a Deployment or upgrade a node cluster, Kubernetes may need to terminate pods to make room for new ones or to drain nodes. Without a Pod Disruption Budget (PDB), a workload could...

  • Kubernetes Debugging: Systematic Troubleshooting Workflow for Production Issues

    Kubernetes Debugging: Systematic Troubleshooting Workflow for Production Issues When a Kubernetes workload misbehaves in production, the instinct is to start applying fixes. A structured workflow prevents wasted time, avoids destructive actions, and makes it easy to track what was tried and why. This article presents a repeatable debugging pattern that...

  • Kubernetes Security Hardening: Practical Patterns for DevOps Engineers

    Kubernetes Security Hardening: Practical Patterns for DevOps Engineers A Kubernetes cluster that runs workloads is inherently shared infrastructure. Without deliberate hardening, each deployed application increases the attack surface. This article walks through concrete, non-disruptive security patterns that DevOps engineers can apply to existing clusters. 1. RBAC: Give Only What Is...

  • Prometheus and Alertmanager: Practical Monitoring and Alerting for Kubernetes

    Prometheus and Alertmanager: Practical Monitoring and Alerting for Kubernetes Modern Kubernetes clusters require observability to detect issues before they impact users. Prometheus is the de facto standard for cluster and workload metrics, and Alertmanager handles routing, silencing, and inhibition of alerts. This article walks through a production-ready Prometheus setup and...

  • Terraform Remote Backends and Workspace Management: A Practical Guide for Teams

    Terraform Remote Backends and Workspace Management: A Practical Guide for Teams When multiple engineers run terraform apply simultaneously, the local state file becomes a bottleneck and a source of conflicts. Remote backends solve this by storing state in a collaborative storage system, while workspaces allow isolating environments under the same...

  • Linux Network Troubleshooting Fundamentals for DevOps Engineers

    Linux Network Troubleshooting Fundamentals for DevOps Engineers A DevOps engineer’s most common infrastructure problems — failed deployments, unreachable services, or latency spikes — almost always have a network root cause. This article compiles the essential Linux networking commands and inspection patterns for diagnosing and resolving these issues quickly. 1. Immediate...

  • OPA Gatekeeper: Enforcing Kubernetes Security Policies

    OPA Gatekeeper: Enforcing Kubernetes Security Policies Kubernetes clusters are highly flexible, but that flexibility can lead to insecure configurations creeping into production. Resource quotas limit consumption, but they don’t validate how resources are shaped — you need policy-as-code for that. OPA Gatekeeper extends the Kubernetes admission control layer to enforce...

  • Progressive Delivery with Kubernetes: Canary and Blue-Green Deployments

    Progressive Delivery with Kubernetes: Canary and Blue-Green Deployments Modern Kubernetes deployments need more than kubectl set image. Rolling updates can mask failures, and all-at-once updates risk downtime. Progressive delivery strategies — canary and blue-green — let you release changes gradually, validate them against real traffic, and roll back instantly if...

  • Chandana Nawarathna Devops Article

    —\nlayout: post\n\ntitle: “CI/CD Pipeline Security: Hardening Build and Deployment Pipelines”\ndate: 2026-11-19 09:00:00 +0530\nauthor: Chandana Nawarathna\ncategories: [DevOps]\ntags: [ci-cd, security, devops, supply-chain, automation]\ndescription: “Practical security hardening techniques for CI/CD pipelines across Jenkins, GitLab CI, CircleCI, and Azure DevOps, including least-privilege principles, secret management, supply-chain protection, and safe-by-default configurations.”\n—\n\n# CI/CD Pipeline Security: Hardening...

  • Kubernetes Troubleshooting: Systematic Debugging When Pods Fail

    Kubernetes Troubleshooting: Systematic Debugging When Pods Fail By default, Kubernetes hides the complexity of your workloads behind desired-state declarations. When a pod crashes, the Pending, CrashLoopBackOff, or ImagePullBackOff status leaves many engineers guessing. This article walks through a systematic troubleshooting framework you can apply regardless of the error type, with...

  • Prometheus Alerting: Practical Rules, Patterns, and Anti-Patterns

    Prometheus Alerting: Practical Rules, Patterns, and Anti-Patterns Prometheus is the de facto monitoring system for Kubernetes and cloud-native infrastructure. But writing alerting rules that are actionable, reliable, and don’t cause alert fatigue is surprisingly difficult. This article covers practical rules you can implement today, patterns that solve real problems, and...