33 lines
793 B
YAML
33 lines
793 B
YAML
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"]
|