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

aws-ebs-csi-driver: add NetworkPolicy allowing access to metadata #865

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

invidian
Copy link
Member

After we created aws-ebs-csi-driver component, we added a patch to
Lokomotive, which deploys a Global Network Policy, which blocks access
to EC2 Instance Metadata by default for all pods, which ended up
breaking the component functionality.

The issue was not spotted before, as the component does not have
readiness probes defined, which has been reported upstream:
kubernetes-sigs/aws-ebs-csi-driver#548

This commit fixes the component functionality, by adding the
NetworkPolicy object selecting the controller pods, which unblocks all
egress traffic for it, which bypasses the Global Network Policy.

Closes #864

Signed-off-by: Mateusz Gozdek mateusz@kinvolk.io

After we created aws-ebs-csi-driver component, we added a patch to
Lokomotive, which deploys a Global Network Policy, which blocks access
to EC2 Instance Metadata by default for all pods, which ended up
breaking the component functionality.

The issue was not spotted before, as the component does not have
readiness probes defined, which has been reported upstream:
kubernetes-sigs/aws-ebs-csi-driver#548

This commit fixes the component functionality, by adding the
NetworkPolicy object selecting the controller pods, which unblocks all
egress traffic for it, which bypasses the Global Network Policy.

Closes #864

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
@invidian invidian modified the milestone: v0.4.0 Aug 27, 2020
Copy link
Member

@ipochi ipochi left a comment

Choose a reason for hiding this comment

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

Haven't tested myself.

LGTM

@invidian invidian merged commit b319cab into master Aug 27, 2020
@invidian invidian deleted the invidian/add-network-policy-to-aws-ebs-csi-driver branch August 27, 2020 10:33
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.

aws-ebs-csi-driver component can't connect to EC2 instance metadata
4 participants