It's possible to create pods with different resources limit in one deployment?

6/28/2017

it's possible to create one deployment with four pods, each pod is identical to each other except the memory limit of their containers.

If it can be done, how is the yaml file look like.

-- Lucy Panda
kubectl
kubernetes

2 Answers

6/28/2017

This is not possible with a single deployment.

You can reach a similar effect by creating multiple deployments.

-- Janos Lenart
Source: StackOverflow

6/28/2017

A deployment specifies the template of a single Pod. You cannot define multiple Pods in a single deployment

-- Sebastien Goasguen
Source: StackOverflow