Kubernetes YAML Kustomize and CRDs
Kustomize overlays, patches, generators, and CRD/CR authoring patterns.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Kustomize Basics
## Patches and Generators
## CRDs and Custom Resources
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: widgets.example.com
spec:
group: example.com
names:
plural: widgets
singular: widget
kind: Widget
shortNames: ["wdg"]
scope: Namespaced
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
size:
type: string# Define a namespaced custom API.
More in Kubernetes YAML
Kubernetes YAML Networking
Services, Ingress, NetworkPolicy, ports, and service exposure manifests.
Kubernetes YAML Config and Secrets
ConfigMap, Secret, projected volume, envFrom, and secure configuration patterns.
Kubernetes YAML Workloads
YAML patterns for Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, HPAs, and PodDisruptionBudgets.
Kubernetes YAML Cheat Sheet
High-value Kubernetes YAML patterns for Pods, Deployments, Services, probes, resources, scheduling, and day-to-day manifest authoring.