Skip to content

Commit

Permalink
Merge pull request #11894 from spadgett/yaml-template-restricted-secu…
Browse files Browse the repository at this point in the history
…rity

Bug 2112146: Update pod YAML sample for restricted pod security admission policy
  • Loading branch information
openshift-merge-robot committed Jul 29, 2022
2 parents 6c4aadd + ae060af commit 6a16c2b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/public/models/yaml-templates.ts
Expand Up @@ -379,11 +379,20 @@ metadata:
labels:
app: httpd
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: httpd
image: image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest
ports:
- containerPort: 8080
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
`,
)
.setIn(
Expand Down

0 comments on commit 6a16c2b

Please sign in to comment.