-
Notifications
You must be signed in to change notification settings - Fork 1
Container
Gregory Nickonov edited this page Mar 11, 2019
·
19 revisions
R.deployment :backend do
container do
image 'tutum/hello-world'
end
endSets up main container of deployment with tutum/hello-world image.
| 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 |
Passing list of values adds them to the args array:
R.deployment :backend do
container do
args '-v', '1', '-l', 42
end
endPassing list of values adds them to the command array:
R.deployment :backend do
container do
command '/bin/sh', '-c', 'ls -al'
end
end