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

Commit

Permalink
Merge pull request #865 from kinvolk/invidian/add-network-policy-to-a…
Browse files Browse the repository at this point in the history
…ws-ebs-csi-driver

aws-ebs-csi-driver: add NetworkPolicy allowing access to metadata
  • Loading branch information
invidian authored Aug 27, 2020
2 parents a57d1aa + da93cb0 commit b319cab
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Lokomotive-specific change.
#
# Bypass Global Network Policy blocking access to EC2 instance metadata
# endpoint by allowing controller pods to connect to everything, as
# other pods can.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ebs-csi-controller-allow-all-egress
spec:
podSelector:
matchLabels:
app: ebs-csi-controller
{{- include "aws-ebs-csi-driver.selectorLabels" . | nindent 6 }}
egress:
- {}
policyTypes:
- Egress
8 changes: 8 additions & 0 deletions pkg/assets/generated_assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b319cab

Please sign in to comment.