ReplicaSets
replication controller
Replication Controller is the older technology that is being replaced by a ReplicaSet. ReplicaSet is the new way to setup replication. automaticaly bring new pods if needed
Load balancing & scaling
kubectl create -f replica.yml
kubectl get replicationcontroller
replica set needs selector definition
scale replica sets
update file
kubectl replace -f replica.yml
kubectl scale --replicas=6 -f replica.yml
kubectl scale --replicas=6 replicaset myapp-replicaset
delete replicaset
kubectl delete replicaset myapp-replicaset
kubectl delete --all namespaces
get replicasetso
kubectl get replicasets.apps
describe
kubectl describe replicasets.apps new-replica-set
get version of replicaset
kubectl explain replicaset | grep VERSION
edit replica, uses editor automaticaly
kubectl edit replicaset new-replica-set