Kubernetes ReplicaSets - считается устаревшей. Рекомендуется использовать Deployments
Делаю: 21.04.2020
https://github.com/burrsutter/9stepsawesome/blob/master/2_building_running.adoc
Запускаем ReplicaSets
$ cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: rs-quarkus-demo
spec:
replicas: 3
selector:
matchLabels:
app: quarkus-demo
template:
metadata:
labels:
app: quarkus-demo
env: dev
spec:
containers:
- name: quarkus-demo
image: quay.io/burrsutter/quarkus-demo:1.0.0
EOF
// $ kubectl get pods --show-labels
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
rs-quarkus-demo-62z29 1/1 Running 0 7s
rs-quarkus-demo-d67vd 1/1 Running 0 7s
rs-quarkus-demo-pgqds 1/1 Running 0 7s
$ kubectl delete pod rs-quarkus-demo-62z29
// $ kubectl get replicasets
$ kubectl get rs
NAME DESIRED CURRENT READY AGE
rs-quarkus-demo 3 3 3 38s
$ kubectl delete replicaset rs-quarkus-demo