Passes pack schemaKubernetes 1.31, pack 2026.10.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: app
labels:
app.kubernetes.io/name: web
spec:
replicas: 3
selector:
matchLabels:
app.kubernetes.io/name: web
template:
metadata:
labels:
app.kubernetes.io/name: web
spec:
automountServiceAccountToken: false
containers:
- name: web
image: registry.example.com/app/web:1.0.0
ports:
- name: http
containerPort: 8080
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
memory: 256Mi
readinessProbe:
httpGet:
path: /ready
port: http
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
periodSeconds: 20
initialDelaySeconds: 10
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault
---
apiVersion: v1
kind: Service
metadata:
name: web
namespace: app
spec:
selector:
app.kubernetes.io/name: web
ports:
- name: http
port: 80
targetPort: http
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: web
namespace: app
spec:
maxUnavailable: 1
selector:
matchLabels:
app.kubernetes.io/name: web