problem to deploy heketi pod on kubernetes

7/2/2019

I want to deploy heketi pod in kubernetes cluster to access a new glusterfs cluster In 3 VMS I create heketi key

    ssh-keygen -f /etc/heketi/heketi_key -m PEM -t rsa
    ssh-copy-id -i /etc/heketi/heketi_key.pub root@noeud1
    ssh-copy-id -i /etc/heketi/heketi_key.pub root@noeud2
    ssh-copy-id -i /etc/heketi/heketi_key.pub root@noeud3

./gk-deploy --yes -n glusterfs --ssh-keyfile /etc/heketi/heketi_key --ssh-user root --ssh-port 22 topology.json

in my kubernetes the heketi pod crash with this msg

Heketi v9.0.0
[cmdexec] ERROR 2019/07/02 14:40:50 
heketi/pkg/remoteexec/ssh/ssh.go:87:ssh.NewSshExecWithKeyFile: Unable to 
get keyfile: ssh: no key found
[cmdexec] ERROR 2019/07/02 14:40:50 
heketi/executors/sshexec/sshexec.go:126:sshexec.NewSshExecutor: Unable to 
read private key file
[heketi] ERROR 2019/07/02 14:40:50 
heketi/apps/glusterfs/app.go:158:glusterfs.(*App).setup: Unable to read 
private key file
ERROR: Unable to start application: Unable to read private key file
-- saber
glusterfs
kubernetes

0 Answers