我有一個關於resources
字段的舵驗證的問題CronJob
圖表,歡迎任何幫助。k8s:創建CronJob圖表時出錯
我用apiVersion批/ v1beta1
我得到的錯誤,當我嘗試從values.yaml
錯誤retrive值:Error: error validating "": error validating data: found `invalid field requests for v1.Container
命令我運行:helm install --dry-run --debug my_chart
我的cronjob圖表如下:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: {{ .Chart.Name }}
spec:
schedule: "0 */2 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
metadata:
...
spec:
containers:
...
spec:
resources:
{{ toYaml .Values.resources | indent 12 }}
錯誤disapierd當我改變了資源配置,以
resources:
requests:
cpu: 300m
memory: 1024Mi
我不喜歡過去的變化,我想按照我的常規配置指南和存儲值values.yaml
集羣版本是
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.4-gke.0", GitCommit:"04502ae78d522a3d410de3710e1550cfb16dad4a", GitTreeState:"clean", BuildDate:"2017-11-27T19:19:56Z", GoVersion:"go1.8.3b4", Compiler:"gc", Platform:"linux/amd64"}
掌舵版本是:
Client: &version.Version{SemVer:"v2.7.0", GitCommit:"08c1144f5eb3e3b636d9775617287cc26e53dba4", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.7.0", GitCommit:"08c1144f5eb3e3b636d9775617287cc26e53dba4", GitTreeState:"clean"}
預先感謝