[//]: # (Confidential document)
[//]: # (01/05/2025)
[//]: # (v 1.7.3)

# Kubernetes  labs v1.7.3
## Kubernetes extensions :   Custom Resource Definitions

A custom resource is an extension of the Kubernetes API that is not necessarily available in a default Kubernetes installation. It represents a customization of a particular Kubernetes installation.


## Lab1: Custom Resource Definitions

  - Manage CRD/CR  using kubectl 
    - Create the CRD Custom Resource Definition
    - Create a custom object my-new-cron-object
    - Get the crontab object
```
kubectl apply -f resourcedefinition.yaml
kubectl apply -f my-crontab.yaml
kubectl get crontab
kubectl get ct -o yaml
```

## Clean up
```
kubectl delete ct my-new-cron-object
kubectl delete -f resourcedefinition.yaml
```