Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Kubernetes: move kernel and CNI setup to init container #3880

Merged
merged 3 commits into from
Jan 14, 2021

Conversation

bboreham
Copy link
Contributor

This allows the main container to run without write access to the host filesystem, except for two specific areas, thus trimming the attack surface.

We lose the behaviour that the CNI plugin is only installed if Weave Net gets up and running at least once, so the error reports from kubelet will be slightly different in the case that it never manages to run.

Also remove manifests for Kubernetes 1.6 and 1.7 to reduce maintenance load - they are ancient history.

They are ancient history; reduce maintenance load by removing
@bboreham bboreham added this to the 2.7.1 milestone Jan 11, 2021
@bboreham bboreham force-pushed the init-container branch 2 times, most recently from 839b2aa to 5612076 Compare January 11, 2021 16:23
This allows the main container to run without write access to the host
filesystem, except for two specific areas, thus trimming the attack
surface.

We lose the behaviour that the CNI plugin is only installed if Weave Net
gets up and running at least once, so the error reports from kubelet
will be slightly different in the case that it never manages to run.
@bboreham bboreham modified the milestones: 2.7.1, 2.8.0 Jan 11, 2021
@bboreham bboreham changed the base branch from 2.7 to master January 14, 2021 12:05
@bboreham bboreham merged commit e91900c into master Jan 14, 2021
@bboreham bboreham deleted the init-container branch January 14, 2021 12:10
avestuk pushed a commit to avestuk/weave that referenced this pull request Jan 21, 2021
Mounted as ReadOnly in order to minimize attack surface as in weaveworks#3880
avestuk pushed a commit to avestuk/weave that referenced this pull request Jan 21, 2021
Mounted as ReadOnly in order to minimize attack surface as in weaveworks#3880
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant