image¶
image
value in Kubedeploy controls the main container image settings.
If left unchanged these are the default values that Kubedeploy will work with:
Default image configuration
image:
repository: nginx # (1)
pullPolicy: IfNotPresent # (2)
tag: "latest" # (3)
command: [] # (4)
args: [] # (5)
lifecycle: {} # (6)
terminationGracePeriodSeconds: 30 # (7)
- Defines container repository
- Default container pull policy
- Defines container image tag
- Defines container custom command. Reference
- Define container custom arguments. Reference
- (Feature state: 1.0.0) Define container custom lifecycle hooks. More info
- Define Pod terminationGracePeriodSeconds.
If we wish to deploy different webserver we can do this by simply changing the image repository.
Apache webserver
Configurable container lifecycle
Main container is intended to run main application inside a Pod. You can augment it with additionalContainers
and initContainers
. Only main container supports defining custom lifecycle hooks.
See the related documentation from Best practices on use cases.
See also: