authoring-k8s-workloads

Write Kubernetes manifests that pass Kyverno admission checks.

1|Updated Mar 20, 2025
One-click install
npx skills add https://github.com/asanexample/platform --skill authoring-k8s-workloads
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authoring-k8s-workloads
Source: https://github.com/asanexample/platform/tree/main/.claude/skills/authoring-k8s-workloads
Command: npx skills add https://github.com/asanexample/platform --skill authoring-k8s-workloads

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ensures Kubernetes manifests meet policy requirements for compliance with Kyverno in platform's environment namespaces, reducing rejected manifest issues.

Core Features & Use Cases

  • Kyverno Compliance: Assists in creating Kubernetes manifests that pass Kyverno admission checks.
  • Namespace-specific guidance: Provides specific guidelines for namespaces labeled platform.refplat.org/team and named with a stage suffix.
  • Prevention of common errors: Offers best practices to avoid common errors in Kubernetes manifests.

Quick Start

Use the 'authoring-k8s-workloads' skill to write a Kubernetes manifest that complies with platform policies.

Frequently Asked Questions about authoring-k8s-workloads

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why are my Kubernetes manifests failing Kyverno admission checks?

Kubernetes manifests fail Kyverno admission checks due to common errors like unscoped images, missing probes, or unsigned images. This guide modifies manifests to meet enforce mode compliance by injecting security policies and ensuring container availability.

How do I write Kubernetes manifests that pass Kyverno enforce mode policies?

To write Kubernetes manifests that pass Kyverno enforce mode, you must apply security policies like securityContext settings and add PodDisruptionBudgets. This guide helps generate compliant application-specific manifests for designated team-product-staged namespaces.

How does Kyverno inject securityContext settings into Kubernetes manifests?

Kyverno automatically injects securityContext settings into Kubernetes manifests to enforce admission compliance. This process prevents common configuration errors and ensures workloads meet baseline security requirements before deployment.

Do I need PodDisruptionBudgets for Kubernetes workloads in platform namespaces?

PodDisruptionBudgets are required to ensure container availability in designated team-product-staged namespaces. This guide adds them to your Kubernetes manifests to maintain compliance and prevent disruptions during node maintenance.

What are the best practices for Kubernetes manifest creation in Kyverno environments?

Best practices for Kubernetes manifest creation in Kyverno environments include using scoped images, adding health probes, and configuring PodDisruptionBudgets. This approach prevents rejected deployments by automatically injecting required security policies.

Can I deploy unsigned images to namespaces with Kyverno admission compliance?

Deploying unsigned images is blocked by Kyverno admission compliance checks in platform environments. This guide helps you modify Kubernetes manifests to avoid common errors like unsigned images and pass enforce mode validations.