G/co/crd/setup

kubectl get crd | grep databasebackups kubectl explain databasebackup You should see your new resource type available. Now that the CRD exists, create an instance of your custom resource ( my-backup.yaml ):

Now go ahead, create your first custom resource, and extend your cluster’s API with confidence. g/co/crd/setup

Mastering g/co/crd/setup: A Step-by-Step Guide to Custom Resource Definitions kubectl get crd | grep databasebackups kubectl explain

apiVersion: stable.example.com/v1 kind: DatabaseBackup metadata: name: nightly-backup spec: backupSchedule: "0 2 * * *" retentionDays: 7 Apply it: create your first custom resource