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无法解决这个问题。一切都是正确的。
此外,是否有任何版本是稳定的,不会在未来出现错误?
发布于 2021-12-15 08:54:12
您面临的错误是:
line 10: field des not found in type v2alpha3.SyncRule在这些des和api中没有字段kind。
基于手动文件同步文档,应该将字段命名为dest。见下面的例子:
build:
artifacts:
- image: gcr.io/k8s-skaffold/node-example
context: node
sync:
manual:
# sync a single file into the `/etc` folder
- src: '.filebaserc'
dest: /etc最后可用的apiVersion of skaffold在发布时的答案是skaffold/v2beta26。
它总是可以在skaffold.yaml文档上检查的
https://stackoverflow.com/questions/70305288
复制相似问题