How modify a K8s pod descriptor without restarting it?

3/23/2020

Is it possible to modify a Kubernetes pod descriptor postponing the restart to a later event?

Basically I want to defer the changes to scheduled restart event.

-- pditommaso
kubernetes
kubernetes-pod

2 Answers

3/24/2020

Pod Presets can work for cases where you want to inject additional configuration in the pod specification at creation time. Think of them as templates / blueprints that are used to inject additional configuration in the pods that match the specified labels, at creation time. You can have a look at some use cases here.

-- George Tseres
Source: StackOverflow

3/23/2020

You cannot. That is not a feature of Kubernetes.

-- coderanger
Source: StackOverflow