Files
buun-stack/debug/debug-pod.yaml
2025-08-15 15:29:07 +09:00

40 lines
841 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: debug-pod
namespace: default
labels:
app: debug
spec:
containers:
- name: web
image: busybox:latest
command:
- sh
- -c
- |
echo "<h1>Debug Pod Web Server</h1><p>Hostname: $(hostname)</p><p>Time: $(date)</p>" > /tmp/index.html
httpd -f -p 8080 -h /tmp
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 64Mi
# Shell container for exec testing
- name: debug
image: busybox:latest
command: ["sleep", "3600"]
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 64Mi
restartPolicy: Never