i188: add in-namespace control resources

This commit is contained in:
2026-11-27 15:35:33 +00:00
parent b9f243e942
commit 9996622eac
6 changed files with 153 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: xt-ctrl
namespace: platchain-293213-dev
labels:
app: xt-ctrl
probe: in-namespace-control
spec:
replicas: 1
selector:
matchLabels:
app: xt-ctrl
template:
metadata:
labels:
app: xt-ctrl
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: c
image: busybox:1.36
command: ["sh","-c","echo XT188-CONTROL-RUNNING in $(hostname) ns $(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace); sleep 3000"]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]