gpt4 book ai didi

kubernetes - Fluxcd 没有应用任何错误 ="running kubectl: error: unable to recognize\"STDIN\": ..."

转载 作者:行者123 更新时间:2023-12-02 11:38:48 24 4
gpt4 key购买 nike

我最近安装了通量CD 1.19.0 Azure AKS k8s 集群使用 Fluxctl 安装 .我们使用 Flux 能够访问和 checkout 的私有(private) git ( 自托管位桶 )。

现在 Flux 没有应用任何错误消息:

ts=2020-06-10T09:07:42.7589883Z caller=loop.go:133 component=sync-loop event=refreshed url=ssh://git@bitbucket.some-private-server.com:7999/infra/k8s-gitops.git branch=master HEAD=7bb83d1753a814c510b1583da6867408a5f7e21b
ts=2020-06-10T09:09:00.631764Z caller=sync.go:73 component=daemon info="trying to sync git changes to the cluster" old=7bb83d1753a814c510b1583da6867408a5f7e21b new=7bb83d1753a814c510b1583da6867408a5f7e21b
ts=2020-06-10T09:09:01.6130559Z caller=sync.go:539 method=Sync cmd=apply args= count=3
ts=2020-06-10T09:09:20.2097034Z caller=sync.go:605 method=Sync cmd="kubectl apply -f -" took=18.5965923s err="running kubectl: error: unable to recognize \"STDIN\": an error on the server (\"\") has prevented the request from succeeding" output=
ts=2020-06-10T09:09:38.7432182Z caller=sync.go:605 method=Sync cmd="kubectl apply -f -" took=18.5334244s err="running kubectl: error: unable to recognize \"STDIN\": an error on the server (\"\") has prevented the request from succeeding" output=
ts=2020-06-10T09:09:57.277918Z caller=sync.go:605 method=Sync cmd="kubectl apply -f -" took=18.5346491s err="running kubectl: error: unable to recognize \"STDIN\": an error on the server (\"\") has prevented the request from succeeding" output=
ts=2020-06-10T09:09:57.2779965Z caller=sync.go:167 component=daemon err="<cluster>:namespace/dev: running kubectl: error: unable to recognize \"STDIN\": an error on the server (\"\") has prevented the request from succeeding; <cluster>:namespace/prod: running kubectl: error: unable to recognize \"STDIN\": an error on the server (\"\") has prevented the request from succeeding; dev:service/hello-world: running kubectl: error: unable to recognize \"STDIN\": an error on the server (\"\") has prevented the request from succeeding"
ts=2020-06-10T09:09:57.2879489Z caller=images.go:17 component=sync-loop msg="polling for new images for automated workloads"
ts=2020-06-10T09:09:57.3002208Z caller=images.go:27 component=sync-loop msg="no automated workloads"

据我了解,Flux 将资源定义传递给 kubectl,然后再应用它们?

我解释错误的方式意味着 kubectl 没有传递任何东西。然而,我在容器中打开了一个外壳,并确保 Flux 实际上正在检查一些东西——它确实做到了。

我尝试将详细程度提高到 9,但它没有返回任何我认为相关的内容(http 请求的详细输出和针对 Kubernetes API 的响应)。

那么这里发生了什么?

最佳答案

问题在于 1.19 通量版本中使用的 kubectl 版本,所以我使用预发布版本修复了它:https://hub.docker.com/r/fluxcd/flux-prerelease/tags

关于kubernetes - Fluxcd 没有应用任何错误 ="running kubectl: error: unable to recognize\"STDIN\": ...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62322589/

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