Files
CKS-Lessons/lab/lesson-27-fixture.yaml
2026-08-23 15:29:06 +06:00

30 lines
535 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: checkout
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: checkout-api
namespace: checkout
spec:
replicas: 2
selector:
matchLabels:
app: checkout-api
template:
metadata:
labels:
app: checkout-api
spec:
containers:
- name: api
image: nginx:latest
ports:
- containerPort: 8080
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]