apiVersion: v1
kind: Pod
metadata:
name: myapp
labels:
app: myapp
spec:
containers:
- name: normalc1
image: nginx
command: ["sh", "-c", "sleep 100 | curl http://172.16.1.20"]
lifecycle:
postStart:
exec:
command: ["sh", "-c", "sleep 100 | curl http://172.16.1.20"]
the app.spec.containers.command works! But app.spec.containers.lifecycle.postStart.exec.command exit with code 137.
This is so weird!!!