hasura / gitkube

Build and deploy docker images to Kubernetes using git push
Apache License 2.0
3.81k stars 207 forks source link

Unable to deploy hasura example project with gitkube on minikube #126

Open ChillarAnand opened 4 years ago

ChillarAnand commented 4 years ago

When deploying hasura example - mono repo with k8s, git push is failing with

$ git push minikube master
default-myremote@172.17.0.2: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When creating myremote, I have used ~/.ssh/id_ras.pub and it wasn't changed. Not sure where gitkube is storing authorized keys and why it is failing to push changes.

platy commented 3 years ago

I had the same issue, it was fixed by restarting the gitkubed deployment after adding the remote. gitkubed doesn't pick up changes after it starts

alimoezzi commented 3 years ago

My issue also fixed by just restarting the gitkube deployment. gitkube logs looks like this

 gitkubed-5b77b47dcd-s4zmh:Invalid user default-backend from 10.92.0.1 port 22276

gitkubed-5b77b47dcd-s4zmh:input_userauth_request: invalid user default-backend [preauth]
gitkubed-5b77b47dcd-s4zmh:Connection closed by 10.92.0.1 port 22276 [preauth]
gitkubed-5b77b47dcd-s4zmh:Did not receive identification string from 10.92.0.1 port 59780

It really doesn't get updated after a new remote is deployed