當我要運行的演示,我得到的錯誤:Kubernetes的cronjob需要設置批次的運行時配置/ v2alpha1 =真
error: error validating "cronJob_example.yaml": error validating data: couldn't find type: v2alpha1.CronJob; if you choose to ignore these errors, turn validation off with --validate=false
然後我發現:
Prerequisites You need a working Kubernetes cluster at version >= 1.4 (for ScheduledJob), >= 1.5 (for CronJob), with batch/v2alpha1 API turned on by passing --runtime-config=batch/v2alpha1=true while bringing up the API server (see Turn on or off an API version for your cluster for more).
以上條件需要做--runtime-config=batch/v2alpha1=true
,但我不知道在哪裏以及如何執行它
我明白了,謝謝 – IronC