Does anyone have experience doing the scheduled work? Due to the guide , ScheduledJobs are available from version 1.4 with the batch / v2alpha1 runtime enabled
So, I was provided with the kubectl api-versions command:
autoscaling/v1 batch/v1 batch/v2alpha1 extensions/v1beta1 storage.k8s.io/v1beta1 v1
But when I tried the template template below with the kubectl apply -f job.yaml
apiVersion: batch/v2alpha1 kind: ScheduledJob metadata: name: hello spec: schedule: 0/1 * * * ? jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure
I got an error
error validating "job.yaml": error validating data: couldn't find type: v2alpha1.ScheduledJob; if you choose to ignore these errors, turn validation off with --validate=false
Is it possible that the function is not yet implemented? Or did I make a mistake when creating the template?
Thanks in advance.
google-container-engine kubernetes google-cloud-platform kubectl
Daniil bolsun
source share