apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: sample-replicaset
namespace: default
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.27.0
ports:
- containerPort: 80
applykubectl apply -f sample-replicaset.yaml

kubectl get replicasets를 입력해서 생성된 ReplicaSet 확인
kubectl get pods를 입력하여, 실제로 ReplicaSet이 Pod를 생성했나 확인
kubectl delete pod <pod 이름>
