lease-kubernetes/lease.yml (29 lines of code) (raw):

apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: # name must match the spec fields below, and be in the form: <plural>.<group> name: leases.pekko.apache.org spec: group: pekko.apache.org versions: - name: v1 storage: true served: true schema: openAPIV3Schema: type: object properties: spec: type: object properties: owner: type: string version: type: string time: type: integer scope: Namespaced names: # kind is normally the CamelCased singular type. Your resource manifests use this. kind: Lease listKind: LeaseList # singular name to be used as an alias on the CLI and for display singular: lease # plural name to be used in the URL: /apis/<group>/<version>/<plural> plural: leases