1.

What is the difference between replication controllers and replica sets?

Answer»

The only difference between replication controllers and replica sets is the selectors. Replication controllers don't have selectors in their spec and also note that replication controllers are obsolete now in the latest VERSION of Kubernetes.

apiVersion: apps/v1 kind: ReplicaSet metadata: NAME: frontend labels: app: GUESTBOOK tier: frontend spec:# modify replicas according to your casereplicas: 3   selector:     matchLabels:       tier: frontend template: metadata: labels: tier: frontend spec: CONTAINERS: - name: php-redis image: gcr.io/google_samples/gb-frontend:v3

Reference: HTTPS://Kubernetes.io/docs/concepts/workloads/controllers/replicaset/



Discussion

No Comment Found

Related InterviewSolutions