简体   繁体   English

为什么我的文件在 Linux 中不可读并出现路径错误?

[英]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:系统规格:

  • I have k8s 2 node cluster with one master node.我有一个主节点的 k8s 2 节点集群。
  • All running Ubuntu 20.4全部运行 Ubuntu 20.4

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.

相关问题 Linux apache中php文件的根路径 - root path for php files in Linux apache 我正在尝试使用.bashrc 在 Linux 上为 JDK 设置 JAVA_HOME 和路径。 但它说[ Error writing.bashrc: Permission denied ]。 为什么? - I'm trying to set JAVA_HOME and path for JDK on Linux using .bashrc. But it says [ Error writing .bashrc: Permission denied ]. Why? 为什么我的LD_LIBRARY_PATH会启动卸载的终端? - Why does my LD_LIBRARY_PATH get an uninstalled terminal launch? 为什么我在 Linux 上执行简单的 shell 命令时收到错误消息? - Why do I get an error message when I implemented a simple shell command on Linux? 为什么会出现错误“配置:错误:找不到glib:glib-config在路径中?”? - Why do I get the error “configure: error: Cannot find glib: Is glib-config in path?”? 为什么超过 50 个用户时 Jmeter FTP 请求 (Linux vsftpd) 中出现高达 99% 的错误? - Why do I get up to 99% error in Jmeter FTP request (Linux vsftpd) at over 50 users? 为什么我在Bash中遇到“意外操作员”错误? - Why do I get an “unexpected operator” error for my condition in Bash? 为什么我的 python 脚本在 linux 上静默停止? - Why my python script stops silently on linux? 为什么我的 TTY 登录在 linux mint 上不起作用 - Why my TTY login not working on linux mint 为什么出现我的暴发户Unicorn rails服务器错误“无法读取机架文件(config.ru)” - Why come my upstart Unicorn rails server errors “rackup file (config.ru) not readable”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM