Skip to content

Commit

Permalink
Merge pull request #21 from andrewh1978/chewram-security-context
Browse files Browse the repository at this point in the history
run as non root on all platform
  • Loading branch information
andrewh1978 authored Dec 7, 2023
2 parents 0a0fb30 + 7803532 commit 3d46666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cd image
docker build -t px-bench .
docker push ...
```
* Create a namespace for your benchmarking, and set your context to it (or ensure that you are applying all YAML below to that namespace)
* TBD: Create a wrapper script that will create the namespace and apply all YAML in order and with correct timing!
* Create the px-bench namespace with `kubectl create ns px-bench`
* Edit `px-bench-env.yml` to set the ConfigMap `env` to set desired values. If necessary, update `image:` to reflect the image you built. NOTE: SET YOUR STORAGECLASSES IN THIS FILE!
Expand Down
9 changes: 2 additions & 7 deletions chewram.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: chewram
---
apiVersion: v1
kind: ConfigMap
metadata:
name: chewram
Expand All @@ -23,7 +18,7 @@ data:
push @array, $string;
print"Memory free:".int(get_memfree())."MB\n";
}
open F, ">/ready";
open F, ">/tmp/ready";
sleep($sleep * 3600);
sub get_memfree {
open F, "</proc/meminfo";
Expand Down Expand Up @@ -78,7 +73,7 @@ spec:
drop: ["ALL"]
readinessProbe:
exec:
command: [ "cat", "/ready" ]
command: [ "cat", "/tmp/ready" ]
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts:
Expand Down

0 comments on commit 3d46666

Please sign in to comment.