Skip to content

Commit

Permalink
Enforce restricted PSS
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkennedy513 committed Sep 6, 2022
1 parent b89640c commit e1a53d2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To begin contributing, please read the [contributing](CONTRIBUTING.md) doc.

## Installation and Usage

The Cert Injection Webhook for Kubernetes is deployed using the [Carvel](hhttps://carvel.dev/) tool suite.
The Cert Injection Webhook for Kubernetes is deployed using the [Carvel](https://carvel.dev/) tool suite.

### Install using kapp controller
If you would like to install with [Tanzu Community Edition](https://tanzucommunityedition.io/). See [this guide](packaging/README.md)
Expand Down
5 changes: 4 additions & 1 deletion config/_namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: cert-injection-webhook
name: cert-injection-webhook
labels:
pod-security.kubernetes.io/enforce: restricted
pod-security.kubernetes.io/enforce-version: v1.25
13 changes: 13 additions & 0 deletions config/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,22 @@ spec:
app: cert-injection-webhook
spec:
serviceAccountName: cert-injection-webhook-sa
securityContext:
runAsNonRoot: true
seccompProfile:
type: "RuntimeDefault"
containers:
- name: server
image: #@ data.values.webhook_image or assert.fail("missing webhook_image")
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
privileged: false
seccompProfile:
type: "RuntimeDefault"
capabilities:
drop:
- ALL
imagePullPolicy: Always
volumeMounts:
- name: webhook-ca-cert
Expand Down

0 comments on commit e1a53d2

Please sign in to comment.