Skip to content

Commit

Permalink
Merge pull request #17 from andrewh1978/chewram-security-context
Browse files Browse the repository at this point in the history
add securitycontext
  • Loading branch information
andrewh1978 authored Dec 7, 2023
2 parents 2678d7e + 6f42a72 commit 0a0fb30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions chewram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: chewram
namespace: chewram
namespace: px-bench
data:
chewram.pl: |-
#!/usr/bin/perl
Expand Down Expand Up @@ -38,7 +38,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: chewram
namespace: chewram
namespace: px-bench
labels:
app: chewram
spec:
Expand Down Expand Up @@ -70,6 +70,12 @@ spec:
image: andrewh1978/px-bench
imagePullPolicy: "IfNotPresent"
command: [ "perl", "/chewram.pl" ]
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop: ["ALL"]
readinessProbe:
exec:
command: [ "cat", "/ready" ]
Expand Down

0 comments on commit 0a0fb30

Please sign in to comment.