V1PolyaxonInitContainer

polyaxon._auxiliaries.init.V1PolyaxonInitContainer()

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.

  • Args:
    • image: str, optional.
    • image_tag: str, optional.
    • image_pull_policy: str, optional.
    • resources: V1ResourceRequirements, optional.

YAML usage

init:
  image: polyaxon/polyaxon-sidecar
  imageTag: v1.x
  imagePullPolicy: IfNotPresent
  resources:
    requests:
      memory: "64Mi"
      cpu: "50m"

Fields

image

The container image to use.

init:
  image: polyaxon/polyaxon-sidecar

imageTag

The container image tag to use.

init:
  imageTag: dev

imagePullPolicy

The image pull policy to use, it must be a valid policy supported by Kubernetes.

init:
  imagePullPolicy: Always

resources

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.