0

I am using openshift 3.11 In the spec below I got from https://docs.openshift.com/enterprise/3.0/architecture/core_concepts/deployments.html, does it mean 1 pod is running, or 1 pod + 1 replica is running?

enter image description here

william007
  • 17,375
  • 25
  • 118
  • 194

1 Answers1

0

So to answer your question yes 1 pod is running and 1 RC. Replicas=1 is nothing but you mean no matter what you want at least 1 pod should be running and this is your desired number of pod. and replica is nothing but running identical pods which are managed by replication controller.

In nutshell to above explanation, 1 pod is running and 1 RC is running(who manages that pod)

Here I have deployed and reproduced your scenario.

I got one RC

enter image description here

Here one POD

enter image description here

But the best practice is to use DeploymentConfig instead of using replicationController directly.

DeploymentConfig manage replicationcontroller and replication controller manages pod directly.

DeploymentConfig >> ReplicationController >> POD

In openshift still have RC not replicaset for DeploymentConfig Here is DeploymentConfig

enter image description here

here is RC for my DeploymentConfig

enter image description here

and here is pod

enter image description here

Dashrath Mundkar
  • 7,956
  • 2
  • 28
  • 42