Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] add image for setting recommended sysctls #1436

Merged
merged 3 commits into from
Mar 12, 2019

Conversation

schallert
Copy link
Collaborator

This PR provides users with a docker image and Kubernetes DaemonSet that
will set the host's sysctls to our recommended settings. We try to be
careful about this and recommend pinning to a docker image SHA so that
the content is immutable (i.e. someone who controlled our Quay repo
couldn't run arbitrary root containers on hosts that have the image).

@codecov
Copy link

codecov bot commented Mar 11, 2019

Codecov Report

Merging #1436 into master will increase coverage by <.1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1436     +/-   ##
========================================
+ Coverage    70.8%   70.9%   +<.1%     
========================================
  Files         836     836             
  Lines       71507   71507             
========================================
+ Hits        50696   50701      +5     
+ Misses      17514   17511      -3     
+ Partials     3297    3295      -2
Flag Coverage Δ
#aggregator 82.3% <ø> (-0.1%) ⬇️
#cluster 85.8% <ø> (ø) ⬆️
#collector 63.7% <ø> (ø) ⬆️
#dbnode 80.8% <ø> (ø) ⬆️
#m3em 73.2% <ø> (ø) ⬆️
#m3ninx 74.2% <ø> (ø) ⬆️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.6% <ø> (ø) ⬆️
#msg 75% <ø> (+0.1%) ⬆️
#query 65.8% <ø> (-0.1%) ⬇️
#x 76% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3cf54e...74a4a48. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 11, 2019

Codecov Report

Merging #1436 into master will decrease coverage by 11.3%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1436      +/-   ##
=========================================
- Coverage    70.9%   59.5%   -11.4%     
=========================================
  Files         836     571     -265     
  Lines       71507   48466   -23041     
=========================================
- Hits        50709   28876   -21833     
+ Misses      17506   17283     -223     
+ Partials     3292    2307     -985
Flag Coverage Δ
#aggregator 61.1% <ø> (-21.2%) ⬇️
#cluster 51.8% <ø> (-34.1%) ⬇️
#collector 47.9% <ø> (-15.8%) ⬇️
#dbnode 74.2% <ø> (-6.6%) ⬇️
#m3em 68.3% <ø> (-4.9%) ⬇️
#m3ninx 71.2% <ø> (-3%) ⬇️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.6% <ø> (ø) ⬆️
#msg 74.9% <ø> (-0.2%) ⬇️
#query 65.6% <ø> (-0.3%) ⬇️
#x 76% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7143653...bb1881a. Read the comment docs.

@schallert schallert changed the title [docker] add image for setting reccomended sysctls [docker] add image for setting recommended sysctls Mar 12, 2019
This PR provides users with a docker image and Kubernetes DaemonSet that
will set the host's sysctls to our recommended settings. We try to be
careful about this and recommend pinning to a docker image SHA so that
the content is immutable (i.e. someone who controlled our Quay repo
couldn't run arbitrary root containers on hosts that have the image).
Copy link
Collaborator

@prateek prateek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, maybe add this to the existing Kube guide too

Copy link
Contributor

@richardartoul richardartoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@richardartoul
Copy link
Contributor

@schallert Should we add a comment somewhere that explains all the places you need to update values if you want to change the recommended defaults? Need to update constants in code, constants in documentation, and also this script now

@schallert schallert merged commit 1d95fb4 into master Mar 12, 2019
@schallert schallert deleted the schallert/sysctl_setter branch March 12, 2019 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants