Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created March 23, 2026 18:02
Show Gist options
  • Select an option

  • Save chadmcrowell/57c81e2ac7077032435e1228fe4a3e8c to your computer and use it in GitHub Desktop.

Select an option

Save chadmcrowell/57c81e2ac7077032435e1228fe4a3e8c to your computer and use it in GitHub Desktop.
YAML file with small error
apiVersion: apps/v1
kind: Deployment
meta
name: api-server
namespace: production
spec:
replicas: 3
selector:
matchLabels:
app: api-server
template:
meta
labels:
app: api-server
spec:
containers:
- name: api
image: myapp:v2.1.0
ports:
- containerPort: 8080
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
---
apiVersion: v1
kind: Service
meta
name: api-server
namespace: production
spec:
selector:
app: apiserver
ports:
- port: 80
targetPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment