Kubernetes Pod Template
In addition to required fields for a pod a pod template in a deployment must specify appropriate labels and an appropriate restart policy.
Kubernetes pod template. Pod can have one or more containers. A pod is the basic execution unit of a kubernetes applicationthe smallest and simplest unit in the kubernetes object model that you create or deploy. A pod represents processes running on your cluster a set of worker machines. This way authors of pod templates consuming a specific service do not need to know all the details about that service.
Kubernetes pod yml example. Kubernetes modifies the pod spec. The kubernetes pod template using the configmap style in configuring the jenkins kubernetes plug in one hour the template can be. For changes to env envfrom and volumemounts kubernetes modifies the.
Pod and container template configuration. It can be either configured via the user interface or via pipeline. This yml file is the template for pod in kubernetes. Name the name of the pod.
Using a pod preset allows pod template authors to not have to explicitly provide all information for every pod. A pod is the smallest building block of kubernetes. The spectemplate is a pod template. We have an issue where our custom agent kubernetes pod template is randomly removed from jenkins on ocp 39.
Either way it provides access to the following fields. It has exactly the same schema as a pod except it is nested and does not have an apiversion or kind. Cloud the name of the cloud as defined in jenkins settings. The podtemplate is a template of a pod that will be used to create agents.