Skip to content

Container

Gregory Nickonov edited this page Mar 11, 2019 · 19 revisions

Quick Start

R.deployment :backend do
  container do
    image 'tutum/hello-world'
  end
end

Sets up main container of deployment with tutum/hello-world image.

Container

Kubernetes Documentation

Property Kubernetes property Type
args args Array of String
command command Array of String
env env Array of EnvVar
env_from envFrom Array of EnvFromSource
image image String
image_pull_policy imagePullPolicy String
TODO: lifecycle lifecycle Lifecycle
liveness_probe livenessProbe Probe
name name String
ports ports Array of ContainerPort
readiness_probe readinessProbe Probe
TODO: resources resources ResourceRequirements
TODO: security_context securityContext SecurityContext
stdin stdin Boolean
stdin_once stdinOnce Boolean
termination_message_path terminationMessagePath String
termination_message_policy terminationMessagePolicy String
tty tty Boolean
TODO: volume_devices volumeDevices Array of VolumeDevice
volume_mounts volumeMounts Array of VolumeMounts
working_dir workingDir String

args

Passing list of values adds them to the args array:

R.deployment :backend do
  container do
    args '-v', '1', '-l', 42
  end
end

command

Passing list of values adds them to the command array:

R.deployment :backend do
  container do
    command '/bin/sh', '-c', 'ls -al'
  end
end

Clone this wiki locally