WIP: Set up Drone CI (1.0.0-rc5) #19

Closed
raucao wants to merge 4 commits from drone-ci into master
Owner

This configures the latest release candidate of Drone CI 1.0.0 on the Kubernetes cluster. It is currently running on https://drone.kosmos.org

The new Drone has real Kubernetes support and creates native jobs/containers for running builds. However, that support is still experimental, and I already had a cluster node run out of memory and evicting the build pod in the middle of a run.

Also, Gitea has an open PR for OAuth, which hasn't been merged yet, and so you have to use your Gitea username and password with Drone right now. (But that's not obvious on the login page.)

closes #14

This configures the latest release candidate of Drone CI 1.0.0 on the Kubernetes cluster. It is currently running on https://drone.kosmos.org The new Drone has real Kubernetes support and creates native jobs/containers for running builds. However, that support is still experimental, and I already had a cluster node run out of memory and evicting the build pod in the middle of a run. Also, Gitea has an open PR for OAuth, which hasn't been merged yet, and so you have to use your Gitea username and password with Drone right now. (But that's not obvious on the login page.) closes #14
raucao added the
feature
kredits-2
labels 2019-03-03 07:26:00 +00:00
raucao changed title from Set up Drone CI 1.0.0-rc5 to Set up Drone CI (1.0.0-rc5) 2019-03-03 07:27:03 +00:00
Author
Owner

Just FYI: I think we may want to run this in a more traditional way on andromeda, until this stuff is stable enough. At least if we see that it breaks regularly on GKE.

Just FYI: I think we may want to run this in a more traditional way on `andromeda`, until this stuff is stable enough. At least if we see that it breaks regularly on GKE.
Author
Owner

I just found this forums post, which explains how Kubernetes support works, where to find what, how to debug it, and how to contribute: https://discourse.drone.io/t/contributing-to-drone-for-kubernetes/3159

I just found this forums post, which explains how Kubernetes support works, where to find what, how to debug it, and how to contribute: https://discourse.drone.io/t/contributing-to-drone-for-kubernetes/3159
Author
Owner

Also very interesting, and relevant to the issue I ran into: https://github.com/drone/drone-runtime/issues/44

https://github.com/drone/drone-runtime/pull/29/files implements resource limits perfectly, but it requires users to set the limits per step.

Many of the pipelines don't use this feature, still in Kubernetes it's a best practice to set the resource requests and limits. If not set and the cluster is out of memory then workloads are killed in a random order.

Also very interesting, and relevant to the issue I ran into: https://github.com/drone/drone-runtime/issues/44 > https://github.com/drone/drone-runtime/pull/29/files implements resource limits perfectly, but it requires users to set the limits per step. > > Many of the pipelines don't use this feature, still in Kubernetes it's a best practice to set the resource requests and limits. If not set and the cluster is out of memory then workloads are killed in a random order.
raucao changed title from Set up Drone CI (1.0.0-rc5) to WIP: Set up Drone CI (1.0.0-rc5) 2019-03-04 06:46:17 +00:00
Author
Owner

Just noticed that the old /var/lib/drone volume mount doesn't persist the data in 1.0 anymore. After creating new deployments, it's all gone.

Marked as WIP.

Just noticed that the old `/var/lib/drone` volume mount doesn't persist the data in 1.0 anymore. After creating new deployments, it's all gone. Marked as WIP.
Author
Owner

For reference, I asked here about the volume mounts: https://discourse.drone.io/t/how-to-persist-data-in-1-0-0/3911

For reference, I asked here about the volume mounts: https://discourse.drone.io/t/how-to-persist-data-in-1-0-0/3911
Author
Owner

Lots of changes happening in Drone still. They now switched to the more common concept of having runners be separate from rest:

https://github.com/drone-runners

So now someone can go and build a k18s-specific runner. So far, there is none however.

(From https://github.com/drone/drone-runtime/issues/65)

Lots of changes happening in Drone still. They now switched to the more common concept of having runners be separate from rest: https://github.com/drone-runners So now someone can go and build a k18s-specific runner. So far, there is none however. (From https://github.com/drone/drone-runtime/issues/65)
raucao removed the
kredits-2
label 2020-07-30 10:59:00 +00:00
raucao closed this pull request 2020-07-30 10:59:11 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/gitea.kosmos.org#19
No description provided.