Different environment variables per pod in a deployment plan?

6/16/2020

Would it be possible to create such a deployment that can create let's say half of the pods with some environment variables and the rest with different environment variables. If possible, is this approach assumed to be best practice?

-- FreeMan
kubernetes
openshift

1 Answer

6/17/2020

Like Christ Bolton suggested in comments, dividing single deployment into multiple set of deployments and services would be the simplest solution. In each deployment You can have different environment variables.

Hope it helps.

-- Piotr Malec
Source: StackOverflow