☸️ReplicaSet
Describe about What is ReplicaSet ?
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: <replica_name>
spec:
replicas: <numbers of replicas>
selector:
matchLabels:
# this label need to match pod label for link
<key_name>: xxx (1)
# this below come from Pods template
template:
metadata:
labels:
<key_name>: xxx (2)
spec:
containers:
- name: <pod_name>
image: <image_name>
Last updated