我试图将一个文件从一个容器复制到我的mac,我也研究了这个问题,,但没有帮助
一开始,我试过
kubectl cp -n company -c company-web-falcon company/company-web-falcon-bb86d79cf-6jcqq:/etc/identity/ca/security-ca.pem /etc/identity/ca/security-ca.pem
这导致了这个错误
tar: Removing leading `/' from member names
所以我试了一下
kubectl cp -n company -c company-we
我已经按照文档安装了kubernetes,并且我使用的是MacV10.13
当我运行kubectl version或kubectl cluster-info时
我得到了这个错误:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
我已经寻找了许多解决方案,但没有找到一个有效的解决方案,有人找到解决方案了吗?
使用sudo运行kubectl get pods:
sudo kubectl get pods
The connection to the server localhost:8080 was refused - did you specify the right host or port?
以普通用户身份运行:
kubectl get pods
No resources found.
我配置了配置文件,并在运行时:
kubectl get nodes
我有一个错误:
Unable to connect to the server: x509: certificate signed by unknown authority
我尝试了所有这些命令,但仍然没有任何改变:
kubectl config set-cluster ${KUBE_CONTEXT} --insecure-skip-tls-verify=true \
--server=${KUBE_CONTEXT}
--insecure-skip-tls-verify=true
kubectl proxy --addr
假设我有,我的命名空间-> - -> -pod,我的容器,我有一个文件位于->。我应用了下面的命令来复制不工作的文件,
kubectl cp my-namepace/my-pod:/opt/tomcat/logs/catalina.2017-05-02.log -c my-container .
注意:我的容器上有tar二进制文件。
错误:
tar: Removing leading `/' from member names
error: open .: is a directory
如果我执行任何kubectl命令,即:
kubectl get nodes
我搞错了
You must be logged in to the server (Unauthorized)
我工作过库伯奈特星系团,没有改变.有什么办法来调试这个吗?kubectl没有-vv d调试标志来提供更多信息。
如果我试着
kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0",
(...)
error: You must be lo
我正在尝试在kubectl cp命令中使用通配符,但是它无法识别通配符。
$ kubectl cp mypod:/tmp/exampleFiles.* /tmp
tar: /tmp/exampleFiles.*: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
虽然我的Kubernetes是最新的(v1.15.2),并且根据通配符问题已经修复,但我很困惑为什么它不适合我。我的语法是错的吗?你认为问题出在哪里?请帮帮我!
我无法在亚马逊ec2实例(亚马逊ami和ubuntu)上安装kubectl。
安装kops和kubectl后,尝试检查kubectl的版本,但抛出错误:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
我已经打开了端口,但仍然收到相同的错误。
我也安装了Minikube,但我仍然面临着同样的问题。