i188: add in-namespace control resources
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user