What is a ReplicaSet
Replica set, also termed as rs in short, is almost same as
the replication controller is, only with a single difference. The replica set
are also known as next generation replication controller. The only difference
between replica set and replication controller is the selector types.
Labels are use pods in pods and Selector is used in RC/RS.
ReplicaSet use Set-based operators and replicationController use Equality-based.
What is difference between match operators when use in
replicaSet and replicationController.
Use sample matchLabels :
# kubectl get rs -o wide --show-labels
# kubectl get rs -o wide --show-labels
ReplicaSet use MatchExpressions operator :-
1.“In” operator :- Search label in running Pods when
found labels and add pods in replicaSet.
2.”NotIn” operator :- ignore labels.
# kubectl get rs -o
wide --show-labels
# kubectl get pods --show-labels
No comments:
Post a Comment