Skip to content

Instantly share code, notes, and snippets.

@ironcladlou
Last active August 7, 2017 18:58
Show Gist options
  • Save ironcladlou/2dbf9fa75082f6c2ffc526db02a056dd to your computer and use it in GitHub Desktop.
Save ironcladlou/2dbf9fa75082f6c2ffc526db02a056dd to your computer and use it in GitHub Desktop.
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must be in the form: plural.group
name: clustercrontabss.stable.example.com
spec:
# group name to use for REST API: /apis/<group>/<version>
group: stable.example.com
# version name to use for REST API: /apis/<group>/<version>
version: v1
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: clustercrontabss
# singular name to be used as alias on the CLI and for display
singular: clustercrontabs
# kind is normally the CamelCased singular type. Your resource manifests use this
kind: ClusterCronTabs
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- cct
apiVersion: "stable.example.com/v1"
kind: ClusterCronTabs
metadata:
name: parent-cluster-cron
spec:
cronSpec: "* * * * /5"
image: my-awesome-cron-image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment