Files
kind-lab/apps/apache-demo/deployment.yaml
2025-07-20 15:36:14 +02:00

31 lines
654 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: apache-demo
namespace: secure
spec:
replicas: 1
selector:
matchLabels:
app: apache-demo
template:
metadata:
labels:
app: apache-demo
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: apache-demo
image: pub.msandor.hu/msandor/apache-demo:latest
ports:
- containerPort: 8080
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
restartPolicy: Always