…and it seems that a LoadBalancer shouldn’t be used at the moment.
Does anybody have a Kubernetes service manifest that I could use to set up Drone in a K8s cluster? I’ve been banging my head against a wall for two days and about to give up so I hope somebody has something that I could use!!
I get it working on the same port as you are. If you run on minikube like I do, you can minikube ssh into your port and try to telnet drone-server 9000 to see if you can get there. If you post your config, I can take a look. Sorry to get back late. I didn’t know the easy way to look for replies that i haven’t replied.
Helm looks like a handy tool so I followed your tutorial. It bothered me that in this tutorial, you use a full domain name host(drone.myhost.io). I do not want to register my static ip to DNS right now. Is there a way to use the static ip alone without declaring a valid host name? I want to connect to drone server using ip.
I try to ignore ingress host variable in values.yaml but helm didn’t parse the ingress backend service part. Is the host domain required for drone’s chart?
Simply ignore the hostname part. It think it will work. Remember to keep the variable tls.enabled to true otherwise Helm won’t attempt to create an Ingress, and change server.host to your valid IP address. If that doesn’t solve your issue, please contact me directly so we can discuss this issue.
Thank you for your quick response. I took a look at the chart for stable/drone, but I didn’t see a config for tls.enabled. So I tried this in the ingress part of my values.yaml:
I thought if I could create the ingress yaml like this for drone with helm, then I could access drone server with bare static ip address. I felt tls.enabled may be not the right settings in drone chart. And I think it may be impossible because I found this in values.yaml in stable/drone, they mentioned the hostname is required.
Maybe when you are using helm to install drone, the best way is to always provide a valid domain name?
Or maybe I could disable the ingress part and make my own ingress for drone?
I’m sorry I made a mistake. It’s not tls.enabled but indeed ingress.enabled. I think you can put your IP address in the host section. Just remember to tweak the server.host variable and put your IP address in there. Unfortunately, it can’t just be the name of your External IP since it won’t resolve, you’ll have to put the actual IP address. Drone requires this for its hooks.
Also, yes, you can forget about TLS right now, it will mess with your configuration.
Creating your own Ingress would work. Especially if you already have one in place. If you keep reading my tutorial you’ll see how to handle TLS certificates too using cert-manager. But that requires an actual domain name.