Skip to content

Commit aa26642

Browse files
Climatems PSS (#76)
* Add securityContext to climatems * Add pss ns annotation for climatems
1 parent c6c10e7 commit aa26642

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

apps/climatems/climatems.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ metadata:
6363
app.kubernetes.io/name: climatems
6464
app.kubernetes.io/component: webserver
6565
app.kubernetes.io/part-of: climatems
66-
annotations:
67-
kube-linter.io/ignore-all: "true"
6866
spec:
6967
replicas: 1
7068
selector:
@@ -81,6 +79,8 @@ spec:
8179
spec:
8280
automountServiceAccountToken: false
8381
serviceAccountName: climatems-climatems
82+
securityContext:
83+
fsGroup: 1000
8484
containers:
8585
- name: climatems
8686
image: ghcr.io/codeformuenster/climatems:v0.1.0
@@ -89,4 +89,15 @@ spec:
8989
resources:
9090
requests:
9191
memory: "100Mi"
92-
cpu: "200m"
92+
cpu: "200m"
93+
securityContext:
94+
allowPrivilegeEscalation: false
95+
capabilities:
96+
drop:
97+
- ALL
98+
readOnlyRootFilesystem: true
99+
runAsGroup: 1000
100+
runAsNonRoot: true
101+
runAsUser: 1000
102+
seccompProfile:
103+
type: RuntimeDefault

apps/climatems/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ kind: Kustomization
44
namespace: c4m-climatems
55

66
resources:
7-
- ../../base/namespace
7+
- ../../base/namespace-pss-restricted
88
- climatems.yaml

0 commit comments

Comments
 (0)