Interface: PodCreateOptions
Defined in: packages/extension-api/src/extension-api.d.ts:426
Properties
exit_policy?
optionalexit_policy?:string
Defined in: packages/extension-api/src/extension-api.d.ts:479
ExitPolicy determines the pod's exit and stop behaviour.
Examples
"continue": the pod continues running. This is the default policy
when creating a pod.
"stop": stop the pod when the last container exits. This is the
default behaviour for play kube.
labels?
optionallabels?:object
Defined in: packages/extension-api/src/extension-api.d.ts:440
Labels are key-value pairs that are used to add metadata to pods. Optional.
Index Signature
[key: string]: string
name?
optionalname?:string
Defined in: packages/extension-api/src/extension-api.d.ts:430
Name is the name of the pod. If not provided, a name will be generated when the pod is created. Optional.
netns?
optionalnetns?:object
Defined in: packages/extension-api/src/extension-api.d.ts:459
Network namespace
nsmode
nsmode:
string
NamespaceMode
Examples
`bridge` indicates that the network backend (CNI/netavark) should be used.
`pasta` indicates that a pasta network stack should be used.
Networks?
optionalNetworks?:object
Defined in: packages/extension-api/src/extension-api.d.ts:450
Map of networks names to ids the container should join to. You can request additional settings for each network, you can set network aliases,
Index Signature
[key: string]: object
Remarks
PodCreateOptions.netns.nsmode need to be set to bridge to join a network