-
sh -c
の引数に>
を書きコマンドを並べていく - コマンドの区切りは&&でつなげる
spec:
containers:
- image: aaa
name: app
imagePullPolicy: Always
ports:
- containerPort: 80
lifecycle:
postStart:
exec:
command:
- "sh"
- "-c"
- >
echo aaa > /tmp/aaa &&
echo bbb > /tmp/bbb