Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/forwarder-vpp/forwarder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ spec:
name: forwarder-vpp
securityContext:
privileged: true
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
capabilities:
drop:
- ALL
add: ["DAC_OVERRIDE", "SYS_ADMIN", "NET_ADMIN", "IPC_LOCK", "NET_RAW", "SYS_PTRACE", "SETGID"]
env:
- name: SPIFFE_ENDPOINT_SOCKET
value: unix:///run/spire/sockets/agent.sock
Expand Down
13 changes: 13 additions & 0 deletions apps/nsmgr/nsmgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ spec:
"spiffe.io/spiffe-id": "true"
spec:
serviceAccount: nsmgr-sa
securityContext:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
containers:
- image: ghcr.io/networkservicemesh/ci/cmd-nsmgr:5b232e8
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -81,6 +85,11 @@ spec:
command: ["/bin/grpc-health-probe", "-spiffe", "-addr=:5001"]
failureThreshold: 25
periodSeconds: 5
securityContext:
capabilities:
drop:
- ALL
add: ["DAC_OVERRIDE"]
- image: ghcr.io/networkservicemesh/ci/cmd-exclude-prefixes-k8s:454b980
imagePullPolicy: IfNotPresent
name: exclude-prefixes
Expand All @@ -94,6 +103,10 @@ spec:
limits:
memory: 40Mi
cpu: 75m
securityContext:
capabilities:
drop:
- ALL
volumes:
- name: spire-agent-socket
hostPath:
Expand Down