From f31ca9840f3b149fb662fdde25e05577f7dfbc65 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 16 Oct 2022 14:41:28 +0200 Subject: [PATCH] =?UTF-8?q?hinzuf=C3=BCght=20einer=20Custom=20Resource=20D?= =?UTF-8?q?efiniton=20als=20CronTab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kubernetes/LFS258/customResource/crd.yaml | 30 +++++++++++++++++++ .../LFS258/customResource/new-crontab.yaml | 7 +++++ 2 files changed, 37 insertions(+) create mode 100644 Kubernetes/LFS258/customResource/crd.yaml create mode 100644 Kubernetes/LFS258/customResource/new-crontab.yaml diff --git a/Kubernetes/LFS258/customResource/crd.yaml b/Kubernetes/LFS258/customResource/crd.yaml new file mode 100644 index 0000000..301efc0 --- /dev/null +++ b/Kubernetes/LFS258/customResource/crd.yaml @@ -0,0 +1,30 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: crontabs.stable.example.com +spec: + group: stable.example.com + versions: + - name: v1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + cronSpec: + type: string + image: + type: string + replicas: + type: integer + scope: Namespaced + names: + plural: crontabs + singular: crontab + kind: CronTab + shortNames: + - ct diff --git a/Kubernetes/LFS258/customResource/new-crontab.yaml b/Kubernetes/LFS258/customResource/new-crontab.yaml new file mode 100644 index 0000000..6e66452 --- /dev/null +++ b/Kubernetes/LFS258/customResource/new-crontab.yaml @@ -0,0 +1,7 @@ +apiVersion: "stable.example.com/v1" +kind: CronTab +metadata: + name: my-new-cron-object +spec: + cronSpec: "* * * * */5" + image: my-awesome-cron-image