[英]Why my files are not readable in Linux and get the Path error?
I am trying to install PGO (Postgres Operator) in k8s.我正在尝试在 k8s 中安装 PGO(Postgres Operator)。 I am following this documentation.我正在关注此文档。 At the 2nd step when I run following command在我运行以下命令的第二步
kubectl apply --server-side -k kustomize/install/default
I see error我看到错误
master-k8s@masterk8s-virtual-machine:~/postgres-operator-examples-main$ kubectl apply --server-side -k kustomize/install/default master-k8s@masterk8s-虚拟机:~/postgres-operator-examples-main$ kubectl apply --server-side -k kustomize/install/default
error: containers path is not of type []interface{} but map[string]interface {}错误:容器路径不是 []interface{} 类型,而是 map[string]interface {} 类型
System Specifications:系统规格:
What I have try:我有什么尝试:
I download repository again without clone and directory uploaded on master node我再次下载存储库而没有克隆和目录上传到主节点
I try to provide full path and this time I received the same error我尝试提供完整路径,但这次我收到了同样的错误
I checked the default directory there 2 files present我检查了默认目录那里有 2 个文件
I try to run this command inside the directory.我尝试在目录中运行此命令。
What Do I need?我需要什么?
I am looking for solution why I am not able to follow the 2nd step of document.我正在寻找无法按照文档的第二步操作的解决方案。 Please help me to find what did I missed or doing it wrong.请帮我找出我错过了什么或做错了什么。
I really thankful.我真的很感激。
To fix your issue make sure kubectl integration like below:要解决您的问题,请确保 kubectl 集成如下所示:
As @Ralle commented, Check versions.正如@Ralle评论的那样,检查版本。 Kustomize v2.1.0 and v3.0.0+, and is included in kubectl 1.21+ , for more information please look at the Kustomize doesn't work with CRDs when specifying images . Kustomize v2.1.0 和 v3.0.0+,并包含在 kubectl 1.21+ 中,有关更多信息,请参阅Kustomize doesn't work with CRDs when specifying images 。
Update: The kustomize build flow at v2.0.3 was added to kubectl v1.14.更新: v2.0.3 的 kustomize 构建流程已添加到 kubectl v1.14。 The kustomize flow in kubectl remained frozen at v2.0.3 until kubectl v1.21, which updated it to v4.0.5 . kubectl 中的 kustomize 流一直冻结在 v2.0.3,直到 kubectl v1.21 更新为 v4.0.5 。 It will be updated on a regular basis going forward, Check your versions & updates in the Kubernetes release notes.它将在未来定期更新,请在 Kubernetes 发行说明中检查您的版本和更新。
For examples and guides for using the kubectl integration please see the kubernetes documentation .有关使用 kubectl 集成的示例和指南,请参阅kubernetes 文档。
Also check Kubernetes 1.22: Server Side Apply moves to GA for more information.另请查看Kubernetes 1.22:服务器端应用移至 GA以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.