2017-03-03 9 views
1

にないgitのクローンは、私が含まれKubernetesでの展開を作成するために使用YAMLファイル持つことができます。私は公共のBitbucket Gitのレポを持ってはKubernetes gitRepoのボリューム

volumeMounts: 
    - name: git-volume 
     mountPath: /code 
    volumes: 
    - name: git-volume 
    gitRepo: 
     repository: "[email protected]:organization/bot.git" 
     revision: "b686122a44aa271117b602e4eba4cc02f5e56044" 

を(私は伐採せずにそれを表示することができます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 

私はこのレポをクローンするために取得できますか?

答えて

関連する問題