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

Closed
raucao wants to merge 4 commits from drone-ci into master
raucao commented 3 years ago
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 3 years ago
raucao changed title from Set up Drone CI 1.0.0-rc5 to Set up Drone CI (1.0.0-rc5) 3 years ago
Poster
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.
Poster
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
Poster
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) 3 years ago
Poster
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.
Poster
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
Poster
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 2 years ago
raucao closed this pull request 2 years ago
Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.