kubectl get rs
kubectl describe rs http-go-rs
kubectl describe rs http-go-rs
kubectl delete rs http-go-rs
kubectl scale rs rs-nginx --replicas=10
kubectl edit rs rs-nginx
nginx-rs.yaml
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: rs-nginx
spec:
# modify replicas according to your case
replicas: 3
selector:
matchLabels:
app: rs-nginx
template:
metadata:
labels:
app: rs-nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80