Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JonasJasas opened this issue Apr 4, 2019 · 6 comments

Comments

@JonasJasas
Copy link

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
Copy link
Contributor

yld commented May 14, 2019

Didn't you forget to expose the service

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

@easyenglishcoding
Copy link

easyenglishcoding commented Jan 28, 2020

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
Copy link

toresbe commented Apr 27, 2020

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
Copy link
Collaborator

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
Copy link

toresbe commented Apr 27, 2020

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
Copy link

shmox75 commented Jan 23, 2021

Any news about this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants