settings_v1alpha1
PodPreset
class
lightkube.models.settings_v1alpha1.PodPreset
(apiVersion=None, kind=None, metadata=None, spec=None)PodPreset is a policy resource that defines additional runtime requirements for a Pod.
parameters
- apiVersion
str
- (optional) APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info - kind
str
- (optional) Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info - metadata
meta_v1.ObjectMeta
- (optional) - spec
PodPresetSpec
- (optional)
PodPresetList
class
lightkube.models.settings_v1alpha1.PodPresetList
(items, apiVersion=None, kind=None, metadata=None)PodPresetList is a list of PodPreset objects.
parameters
- items
PodPreset
- Items is a list of schema objects. - apiVersion
str
- (optional) APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info - kind
str
- (optional) Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info - metadata
meta_v1.ListMeta
- (optional) Standard list metadata. More info
PodPresetSpec
class
lightkube.models.settings_v1alpha1.PodPresetSpec
(env=None, envFrom=None, selector=None, volumeMounts=None, volumes=None)PodPresetSpec is a description of a pod preset.
parameters
- env
core_v1.EnvVar
- (optional) Env defines the collection of EnvVar to inject into containers. - envFrom
core_v1.EnvFromSource
- (optional) EnvFrom defines the collection of EnvFromSource to inject into containers. - selector
meta_v1.LabelSelector
- (optional) Selector is a label query over a set of resources, in this case pods. Required. - volumeMounts
core_v1.VolumeMount
- (optional) VolumeMounts defines the collection of VolumeMount to inject into containers. - volumes
core_v1.Volume
- (optional) Volumes defines the collection of Volume to inject into the pod.