我正在尝试在我的 Argo 工作流程中运行此命令
kubectl cp /tmp/appendonly.aof redis-node-0:/data/appendonly.aof -c redis -n redis
但我得到这个错误
Error from server (InternalError): an error on the server ("invalid upgrade response: status code 200") has prevented the request from succeeding (get pods redis-node-0)
令人惊讶的是,当我将文件从 pod 复制到本地系统时,它正在工作,就像这个命令一样kubectl cp redis-node-0:/data/appendonly.aof tmp/appendonly.aof -c redis -n redis
知道可能是什么原因造成的吗?