gitkube icon indicating copy to clipboard operation
gitkube copied to clipboard

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

Open JonasJasas opened this issue 5 years ago • 6 comments

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?

JonasJasas avatar Apr 04 '19 16:04 JonasJasas

Didn't you forget to expose the service

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

yld avatar May 14 '19 15:05 yld

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://[email protected]: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

easyenglishcoding avatar Jan 28 '20 16:01 easyenglishcoding

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.

toresbe avatar Apr 27 '20 00:04 toresbe

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

tirumaraiselvan avatar Apr 27 '20 03:04 tirumaraiselvan

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.

toresbe avatar Apr 27 '20 08:04 toresbe

Any news about this issue ?

shmox75 avatar Jan 23 '21 17:01 shmox75