A Deployment in an enforcing namespace

Predict the outcome

Difficulty 1 of 3Not solved yet

You run kubectl apply -f web.yaml with this file. The namespace sets only the enforce label. What do you see?

Your first answer is the one that counts. After a miss you can try again, or ask for the answer.

apiVersion: v1
kind: Namespace
metadata:
name: payments
labels:
pod-security.kubernetes.io/enforce: restricted
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: payments
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: nginx:1.30
ports:
- containerPort: 80
Your prediction