hasura / gitkube

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

FATA[0000] gitkube service of type LoadBalancer has no available IP/hostnames #112

Open JonasJasas opened 5 years ago

JonasJasas commented 5 years ago

Repeated all steps successfully of this example on fresh Kubernetes 1.14 install. After this:

gitkube remote create -f myremote.yaml

getting this:

INFO[0000] remote example created                       
INFO[0000] waiting for remote url                       
FATA[0000] gitkube service of type LoadBalancer has no available IP/hostnames

What I am missing?

yld commented 5 years ago

Didn't you forget to expose the service

kubectl --namespace kube-system expose deployment gitkubed --type=LoadBalancer --name=gitkubed

easyenglishcoding commented 4 years ago

Hello,

I have the same problem. that LoadBalancer has no available IP/hostnames. I have already exposed service with external IP.

I don't use cloud which can give IP automatically, but I have microk8s and one public IP (set manualy, by editing gitkubed and add externalIPs field).

Let's check:

root@goliat:~# gitkube remote create -f myremote.yaml
INFO[0000] remote eec-api-remote created
INFO[0000] waiting for remote url
FATA[0000] gitkube service of type LoadBalancer has no available IP/hostnames

root@goliat:~# kubectl get svc/gitkubed -n kube-system
NAME       TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)          AGE
gitkubed   LoadBalancer   10.152.183.37   51.38.131.202   1022:30225/TCP   20h

I only changed the port of ssh service because 22 is used by my node (ssh server outside of k8s). I can create the luckless url by myself, but gitkube can't. For example: ssh://default-myremote@51.38.131.202:1022/~/git/default-myremote

I have already tried to create myremote.yaml object in the same namespace as gitkubed service, but the result was the same.

What do you propose?

Best Regards Radek Kubiak

toresbe commented 4 years ago

I also have Radek's issue. I install gitkube and create the remote using the standard kubectl commands in the tutorial. I've tried this:

kubectl --namespace kube-system expose deployment gitkubed --type=LoadBalancer --name=gitkubed --external-ip=192.168.3.101

But to no avail. After a while I ended up just giving up and reverting to building and pushing locally, which is a shame because gitkube looks super neat.

tirumaraiselvan commented 4 years ago

You can also check for the git remote url using kubectl: kubectl get remote myremote -o yaml and look in the status section. See https://github.com/hasura/gitkube#deploying-application

toresbe commented 4 years ago

Thank you for the reply. I did do this, but kubectl | grep Url - I do not have the exact string handy but the error message was indeed gitkube service of type LoadBalancer has no available IP/hostnames.

shmox75 commented 3 years ago

Any news about this issue ?