polyaxon.auxiliaries.init.V1PolyaxonInitContainer(image=None, image_tag=None, image_pull_policy=None, resources=None)
Polyaxon init is a helper container that initialize the environment required for the main container to function correctly.
Polyaxon CE and Polyaxon Agent are deployed with default values for the init container, however if you need to control or update one or several aspects of how the init container that gets injected, this guide walks through the possible options.
- image: str, optional.
- image_tag: str, optional.
- image_pull_policy: str, optional.
- resources: V1ResourceRequirements, optional.
init: image: polyaxon/polyaxon-sidecar imageTag: v1.x imagePullPolicy: IfNotPresent resources: requests: memory: "64Mi" cpu: "50m"
The container image to use.
init: image: polyaxon/polyaxon-sidecar
The container image tag to use.
init: imageTag: dev
The image pull policy to use, it must be a valid policy supported by Kubernetes.
init: imagePullPolicy: Always
The resources requirements to allocate to the container.
init: resources: memory: "64Mi" cpu: "50m"
N.B.1: Resources are applied to all instances of the init container within the same pod.
N.B.2: It’s possible to alter this behaviour on per operation level using the init section.