custom resource definitions
1. Understanding Custom Resource Definitions (CRDs):
2. Create a Custom Resource Definition (CRD):
# myapp-crd.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: myapps.example.com
spec:
group: example.com
names:
kind: MyApp
listKind: MyAppList
plural: myapps
singular: myapp
scope: Namespaced
versions:
- name: v1alpha1
served: true
storage: true
additionalPrinterColumns:
- name: State
type: string
description: "The current state of the application"
JSONPath: .status.state