Kubernetes: Minimal Deployment
A short, tested Kubernetes example for minimal deployment. Copy it and adjust the names and paths for your project.
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
spec:
replicas: 2
selector:
matchLabels: { app: web }
template:
metadata:
labels: { app: web }
spec:
containers:
- name: web
image: nginx:1.27
ports: [{ containerPort: 80 }]Find it in Zest
Search for “kubernetes minimal deployment” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.