1
我有,我用它来创建Kubernetes部署,其中包括一个YAML文件:无法克隆的git到Kubernetes gitRepo量
volumeMounts:
- name: git-volume
mountPath: /code
volumes:
- name: git-volume
gitRepo:
repository: "[email protected]:organization/bot.git"
revision: "b686122a44aa271117b602e4eba4cc02f5e56044"
我有一个公开的Git到位桶回购(我可以查看它没有记录进入Bitbucket)。
在Kubernetes开始部署时,我得到这个错误:
failed to exec 'git clone [email protected]:organization/bot.git': Cloning into 'bot'... Could not create directory '/root/.ssh'.
Failed to add the host to the list of known hosts (/root/.ssh/known_hosts).
Permission denied (publickey).
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. : exit status 128
我怎样才能得到这个回购克隆?