https://kubernetes.io/ko/docs/concepts/workloads/controllers/replicaset/
replicas 설정을 통해 구동할 pod 개수를 2개 이상으로 설정(이중화)
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: frontend
labels:
app: guestbook
tier: frontend
spec:
# 케이스에 따라 레플리카를 수정한다.
replicas: 3
selector:
matchLabels:
tier: frontend
template:
metadata:
labels:
tier: frontend
spec:
containers:
- name: php-redis
image: gcr.io/google_samples/gb-frontend:v3
때에 따라 HPA(Horizontal Pod Autoscaler) 설정을 통해 auto scaling 처리
레플리카셋은 HPA에 의해 auto scaling될 수 있다.