Skip to content

Commit

Permalink
Use privileged by default (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao authored Jan 4, 2024
1 parent 3995a44 commit 498ddb5
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions charts/egressd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,18 @@ collector:
# fsGroup: 2000

containerSecurityContext:
privileged: false
privileged: true
readOnlyRootFilesystem: true
capabilities:
drop:
- all
add:
- NET_ADMIN # Needed for reading conntrack.
- SYS_PTRACE # Needed for reading conntrack.
- SYS_ADMIN # Needed for reading conntrack and ebpf.
- BPF # Needed for reading ebpf.
- PERFMON # Needed for reading ebpf.
# If privileged is not allowed these capabilities can be set instead.
# capabilities:
# drop:
# - all
# add:
# - NET_ADMIN # Needed for reading conntrack.
# - SYS_PTRACE # Needed for reading conntrack.
# - SYS_ADMIN # Needed for reading conntrack and ebpf.
# - BPF # Needed for reading ebpf.
# - PERFMON # Needed for reading ebpf.

resources:
requests:
Expand All @@ -80,7 +81,15 @@ collector:
tolerations:
- operator: Exists

affinity: { }
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate

dnsPolicy: ClusterFirstWithHostNet

Expand Down

0 comments on commit 498ddb5

Please sign in to comment.