G/co/crd/setup ~upd~ -
kubectl apply -f my-resource-crd.yaml To follow the g/co/crd/setup pattern, you could wrap this in a script or Makefile:
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 ): g/co/crd/setup
Mastering g/co/crd/setup: A Step-by-Step Guide to Custom Resource Definitions kubectl apply -f my-resource-crd
Now go ahead, create your first custom resource, and extend your cluster’s API with confidence. create your first custom resource