gpt4 book ai didi

ubuntu - 须藤 : unable to resolve host slave-node: Name or service not known when need to install skaffold on ubuntu 20

转载 作者:行者123 更新时间:2023-12-04 18:59:31 24 4
gpt4 key购买 nike

我想在 ubuntu 20 中使用 skaffold。我使用此命令进行安装:

curl -Lo skaffold https://storage.googleapis.com/skaffold/builds/latest/skaffold-linux-amd64 && \
sudo install skaffold /usr/local/bin/
并且它已完成下载,但在完成下载后它向我显示此消息:
sudo: unable to resolve host slave-node: Name or service not known

i installed the kubernetes in my ubuntu


这是我的 skaffold.yaml在我的项目中:
apiVersion: skaffold/v0.25.0
kind: Config
deploy:
kubectl:
manifests:
- ./infra/k8s/*
build:
local:
push: false
artifacts:
- image: stephengrider/auth
context: auth
docker:
dockerfile: Dockerfile
sync:
manual:
- src: 'src/**/*.ts'
dest: .
当我运行此命令时,它会显示此消息:
parsing skaffold config: unknown api version: "skaffold/v0.25.0"
有什么问题 ?我怎么解决这个问题 ???

最佳答案

您使用了错误的 API 版本。
查看 skaffold.yaml reference page - 你可以在那里看到正确的apiVersion例子:

apiVersion: skaffold/v2beta10 
apiVersion: skaffold/v2beta9
apiVersion: skaffold/v2alpha1
etc
即使你使用 Skaffold v0.25.0 Release - 3/15/2019 ,有一个注释可以解决您的问题。

Note: This release comes with a new config version v1beta7. To upgradeyour skaffold.yaml, use skaffold fix. If you don't upgrade, skaffoldwill auto-upgrade in memory as best it can, and print a warningmessage.


所以使用 apiVersion: skaffold/v1beta7应该有帮助

关于ubuntu - 须藤 : unable to resolve host slave-node: Name or service not known when need to install skaffold on ubuntu 20,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65285734/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com