Dev, Tst, Acc, Prd (DTAP) is about isolating multiple environments to ensure that data will not be mixed, e.g. production data in development or lost, e.g. database removal removes all production data. DTAP is also about environments that are identical, e.g. if a database in prd, then there should be a database in dev as well, but the data should not be mixed. It is about prediction. The more the environments are identical the bigger the change that if a certain change works in dev, then it will work in tst, acc and prd.
There are at least two options, i.e. one k8s cluster or multiple.
one k8s cluster
- Lower costs
- Dangerous as pods from production environment could be removed, while the intention was to removed dev pods.
multiple k8s clusters
- Higher costs
- Lower change that data will be removed accidentally due to isolation