|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
Additional pod configurations. |
||
| SideCarContainers |
array |
A list of sidecar containers. |
|
| ContainerSpec |
Configuration for a sidecar container. |
||
| InitContainers |
array |
A list of init containers that run to completion before the main container starts. |
|
| ContainerSpec |
Configuration for an init container. |
||
| PodLabels |
object |
Key-value pairs to apply to the pod as labels. Use labels to organize and select pods. |
|
|
string |
The value for the label. |
example-lable |
|
| PodAnnotations |
object |
Key-value pairs to apply to the pod as annotations. Use annotations to attach arbitrary, non-identifying metadata. |
|
|
string |
The value for the annotation. |
example-annotation |
|
| SharedVolumeMountPaths |
array |
A list of local directory paths to mount and share among all containers in the pod. |
|
|
string |
A shared local directory path. |
/root/share/ |
|
| Lifecycle |
Lifecycle |
Defines lifecycle hooks for the main container. |
|
| MainContainerSecurityContext |
SecurityContext |
Defines the security context for the main container. |
该文章对您有帮助吗?