【发布时间】:2021-12-10 13:30:40
【问题描述】:
skaffold.yaml
apiVersion: skaffold/v2alpha3
kind: Config
deploy:
kubectl:
manifests:
- ./infra/k8s/*
build:
local:
push: false
artifacts:
- image: karan346/auth
context: auth
docker:
dockerfile: Dockerfile
sync:
manual:
- src: 'src/**/*.ts'
des: .
错误
parsing skaffold config: error parsing skaffold configuration file: unable to parse config: yaml: unmarshal errors:
line 10: field des not found in type v2alpha3.SyncRule
无法解决问题。一切都设置正确。
另外,有没有稳定的版本,以后不会报错?
【问题讨论】:
-
你可以看到你的错误是关于字段
des。您可以检查the documentation 并看到该字段名为dest。因此,一旦您更正它,它应该可以工作。至于apiVersion,最新的是skaffold/v2beta26——见here
标签: kubernetes skaffold