[v12] Add Docker Hub login to Drone's Kubernetes pipelines#23958
Merged
wadells merged 5 commits intobranch/v12from Apr 3, 2023
Merged
[v12] Add Docker Hub login to Drone's Kubernetes pipelines#23958wadells merged 5 commits intobranch/v12from
wadells merged 5 commits intobranch/v12from
Conversation
reedloden
approved these changes
Apr 1, 2023
tcsc
approved these changes
Apr 2, 2023
r0mant
approved these changes
Apr 2, 2023
After moving Drone to AWS, we're seeing image pulls get rate limited because they're all coming from the same IP (an AWS NAT gateway). To avoid this, we refactor pipelines to cache/reuse images where possible, as well as add authentication to dockerhub pulls.
This is useful for making private test builds.
We don't actually consistently want these in all places. E.g. parallel pipelines cannot share a volumeRefDockerConfig, as they'll stop on each others login information.
A shared volume results in the different steps racing against each other.
We don't actually pull from dockerhub in these steps.
2270c22 to
69c1002
Compare
|
@wadells - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes. |
Contributor
Author
|
All green on the test builds. Merging! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports #23956
Backports #23957
Summary
After moving Drone to AWS, we're seeing image pulls get rate limited because they're all coming from the same IP (an AWS NAT gateway). To avoid the rate limiting on AWS, we refactor pipelines to cache/reuse images where possible, as well as add authentication to Docker Hub pulls.
Related Issues & PRs
Contributes to https://github.com/gravitational/SecOps/issues/285
See the orginal PRs to master for more context.
Testing
This is undergoing final testing at:
These tests are based off 12.1.5 -- so they should be fully clean.