mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
fix(reflector): restricted pod-security
This commit is contained in:
@@ -20,4 +20,17 @@ spec:
|
||||
priorityClassName: "system-cluster-critical"
|
||||
tolerations:
|
||||
- key: "node-role.kubernetes.io/control-plane"
|
||||
operator: "Exists"
|
||||
operator: "Exists"
|
||||
# restricted PSS
|
||||
podSecurityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: &uid ${APP_UID_REFLECTOR:=1000}
|
||||
runAsGroup: *uid
|
||||
fsGroup: *uid
|
||||
fsGroupChangePolicy: "Always"
|
||||
seccompProfile: { type: "RuntimeDefault" }
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
@@ -6,9 +6,11 @@ metadata:
|
||||
namespace: flux-system
|
||||
labels: &l
|
||||
app.kubernetes.io/name: "reflector"
|
||||
wait.flux.home.arpa/disabled: "true"
|
||||
spec:
|
||||
commonMetadata:
|
||||
labels: *l
|
||||
path: ./kube/deploy/core/secrets/reflector/app
|
||||
targetNamespace: "reflector"
|
||||
wait: false
|
||||
dependsOn: []
|
||||
Reference in New Issue
Block a user