Section 7: CRDs
Overview
This section introduces Custom Resource Definitions (CRDs) to extend Kubernetes with custom API objects for domain-specific resources.
Key Concepts
- Understanding Kubernetes API extension mechanisms
- Creating and deploying CRDs
- Schema validation with OpenAPI v3
- Custom resource lifecycle management
Example
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: votingapps.example.com
spec:
group: example.com
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
replicas:
type: integer
image:
type: string
scope: Namespaced
names:
plural: votingapps
singular: votingapp
kind: VotingApp
Coming Soon
Full content will be added in later phases of this project.