This directory contains an example of a simple but production-ready Drone install on Google Container Engine. We use nginx and Let's Encrypt to automatically generate a matching SSL cert for you at runtime.
Note: While Drone supports a variety of different remotes, this demo assumes that the projects you'll be building are on GitHub.
**Warning: Before proceeding, you should have followed the directions in the "Prep Work" section in the README.md found in this directory's parent.
Finally, run install-drone.sh
and follow the prompts carefully. At the end of the installation script, you should be able to point your browser at https://drone.your-fqdn.com
and see a Login page.
This install script installs Drone on the cluster that is currently active in your kubectl
client, in whatever namespace your current active context specifies (the default
namespace if you haven't done anything to specifically change it). This is fine if Drone is the only thing running on your cluster, and is often fine even if that is not the case.
If you'd like to further isolate Drone from anything else running on your cluster, see the Kubernetes docs for Sharing a Cluster with Namespaces. Before installing Drone, you'd want to create a new namespace, configure your kubectl
context, set the context as active, then run the install script.
You can verify that everything is running correctly like this:
kubectl get pods
You should see several pods in a "Running" state. If there were issues, note the name of the pod and look at the logs. This is a close approximation of what you'd need to type to check the nginx proxy logs:
kubectl logs -f drone-server-a123 nginx-proxy
Here's a close approximation of what you'd need to check the Drone server logs:
kubectl logs -f drone-server-a234 drone-server
And agent:
kubectl logs -f drone-agent-a345
Where drone-server-a123
is the pod name.
We've glossed over quite a few details, for the sake of brevity. If you have questions, post them to our Help! category on the Drone Discussion site. If you'd like a more realtime option, visit our Gitter room.