#pod.spec
hostAliases:
- ip: "10.1.2.3"
hostnames:
- "foo.com"
- "bar.com"
pod.pec
shareProcessNamespace: true
hostNetwork: true
hostIPC: true
hostPID: true
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
preStop:
exec:
command: ["/usr/sbin/nginx","-s","quit"]
标签:temp,exec,usr,pod,true,postStart
From: https://www.cnblogs.com/wangend/p/16935903.html