Pulumi Kubernetes Guard
A policy pack of rules to enforce Kubernetes best practices.
Overview
Pulumi Kubernetes Guard is a configurable library that you can use to enforce Kubernetes best practices for your own Pulumi stacks or organization. It is part of Pulumi's Policy as Code offering, CrossGuard, and can be used to check for common issues like running containers as root, not setting resource limits, or exposing services insecurely. Policies can be set to 'advisory' to warn developers or 'mandatory' to block deployments.
✨ Key Features
- Enforce Kubernetes security best practices
- Check for cost optimization and reliability configurations
- Align with Pod Security Standards (PSS)
- Configurable enforcement levels (advisory, mandatory, disabled)
- Integrates directly into `pulumi up` and `pulumi preview`
🎯 Key Differentiators
- Policy written in general-purpose languages (TypeScript)
- Validates resources before they are sent to the Kubernetes API server
- Unified policy approach for both Kubernetes and the underlying cloud infrastructure
Unique Value: Enforce Kubernetes best practices using familiar programming languages, catching and preventing misconfigurations before they are deployed to the cluster.
🎯 Use Cases (4)
✅ Best For
- Enforcing Pod Security Standards in a CI/CD pipeline before deploying applications to a Kubernetes cluster.
💡 Check With Vendor
Verify these considerations match your specific requirements:
- Runtime security monitoring in Kubernetes (use Falco or similar)
- Policy enforcement for non-Kubernetes resources
🏆 Alternatives
Unlike admission controllers like Gatekeeper or Kyverno which run inside the cluster, Kubernetes Guard runs client-side, providing earlier feedback to developers and working with any Kubernetes cluster without requiring cluster-side setup.
💻 Platforms
✅ Offline Mode Available
🔌 Integrations
💰 Pricing
Free tier: The policy pack itself is open-source and free.
🔄 Similar Tools in Pulumi Crossguard
Pulumi AWS Guard
Codifies best practices for AWS, allowing enforcement across Pulumi stacks....
Pulumi Azure Compliance Policies
Enforces common security and compliance policies (PCI DSS, ISO 27001, CIS) for Azure....
Pulumi Open Policy Agent (OPA) Integration
Enforce security, compliance, and best practices using the Rego language....
Pulumi Snyk Integration
Integrates Snyk's container scanning capabilities directly into the Pulumi workflow....
Pulumi Vault Provider
Manage Vault resources like policies, secrets, and auth methods using Pulumi....
Pulumi Best Practices Pack
A pre-built policy pack from Pulumi that enforces foundational security and governance....