Datasets:
AutoOntologyBench / source_data /pinned /gatekeeper-library /commit-a8d4799d8daf /website /docs /mutation-examples /read-only-root-filesystem.md
|
Download source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md from Vinyeh/AutoOntologyBench: direct link, hf CLI and curl.
- Browser
- Download file 740 Bytes
-
https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md
- Command line
-
hf download hf://datasets/Vinyeh/AutoOntologyBench/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md
-
curl -L -o read-only-root-filesystem.md https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/website/docs/mutation-examples/read-only-root-filesystem.md
740 Bytes
metadata
id: read-only-root-filesystem
title: read-only-root-filesystem
read-only-root-filesystem
Usage
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-library/master/mutation/pod-security-policy/read-only-root-filesystem/samples/mutation.yaml
Mutation Examples
apiVersion: mutations.gatekeeper.sh/v1
kind: Assign
metadata:
name: k8spspreadonlyrootfs
spec:
applyTo:
- groups: [""]
kinds: ["Pod"]
versions: ["v1"]
location: "spec.containers[name:*].securityContext.readOnlyRootFilesystem"
parameters:
pathTests:
- subPath: "spec.containers[name:*].securityContext.readOnlyRootFilesystem"
condition: MustNotExist
assign:
value: true