gitkube
gitkube copied to clipboard
FATA[0000] gitkube service of type LoadBalancer has no available IP/hostnames
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?
Didn't you forget to expose the service
kubectl --namespace kube-system expose deployment gitkubed --type=LoadBalancer --name=gitkubed
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
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.
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
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
.
Any news about this issue ?