Kubernetes cronjob报告失败和successfuJobsHistoryLimit“发现无效字段”
我在我的Kubernetes集群中创build了一个工作正常的CronJob。 我试图添加成功的JobJobsHistoryLimit和failedJobsHistoryLimit spec字段。 根据https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/上的文档,它们应该位于顶级规范部分,但是在应用时出现错误:
error validating data: [found invalid field successfulJobsHistoryLimit for v2alpha1.CronJobSpec, found invalid field failedJobsHistoryLimit for v2alpha1.CronJobSpec]; if you choose to ignore these errors, turn validation off with --validate=false
我的YAML看起来像这样:
apiVersion: batch/v2alpha1 kind: CronJob metadata: name: test-cronjob spec: schedule: "05 * * * *" jobTemplate: spec: template: spec: containers: - name: test-cronjob image: my-cron-image restartPolicy: OnFailure concurrencyPolicy: Forbid successfulJobsHistoryLimit: 5 failedJobsHistoryLimit: 5
我在Rancher运行Kubernetes 1.5.4。
successfulJobsHistoryLimit
的职业JobsJistoryLimit不是1.5.4的一部分。 它在1.6中首次可用
- 其中一个容器间歇性地不能访问群中的另一个容器
- 如果Docker中的图像没有标记,那么它们是全部使用还是孤儿?
- 是否有可能将Docker Hub公开托pipe的映像部署到Kubernetes Container Engine,而无需将其上传到Container Contay?
- 在尝试通过sbt构build项目时,Docker中超出了GC开销限制
- 主机无法与作为Docker容器运行的Rancher服务器通信
- 在wordpress docker中编辑默认的.htaccess
- 将容器卷装入另一个path上的另一个容器中
- docker集装箱之间打开端口
- 如何在官方的MySql docker镜像中以root身份运行mysqld?