Skip to content

Instantly share code, notes, and snippets.

@aslafy-z
Created June 27, 2025 08:40
Show Gist options
  • Save aslafy-z/460bd2d8a066a3284980c797d9755764 to your computer and use it in GitHub Desktop.
Save aslafy-z/460bd2d8a066a3284980c797d9755764 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: echo-headers
labels:
app: echo-headers
spec:
replicas: 2
selector:
matchLabels:
app: echo-headers
template:
metadata:
labels:
app: echo-headers
spec:
containers:
- name: echo-headers
image: ghcr.io/aslafy-z/echo-headers:latest
ports:
- containerPort: 8080
name: http
env:
- name: ECHO_ADDR
value: ":8080"
- name: ECHO_CONTEXT
value: "true"
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: echo-headers-service
labels:
app: echo-headers
spec:
selector:
app: echo-headers
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment