## Chapter 4  

1. To create the RC via
``` bash
$ kubectl create -f kubapp-rc.yaml
```

2. To add and remove labels from the pod (so pod will be removed from the 
scope of RC) run
``` bash
$ kubectl label pod <pods name> type=special
$ kubectl label pod <pods name> app=kubapp2 --overwrite
$ kubectl get po
```

3. To scale your RC up run
``` bash
$ kubectl scale rc kubapp --replicas=10
```

4. To delete the RC without all pods, run:
``` bash
$ kubectl delete rc kubapp --cascade=false
```

5. To start a new ReplicaSet run
``` bash
$ kubectl create -f kubapp-rs.yaml
```

6. To check the information about your ReplicaSet run:
``` bash
$ kubectl describe rs
```



## Chapter 4  

1. To create the RC via
``` bash
$ kubectl create -f kubapp-rc.yaml
```

2. To add and remove labels from the pod (so pod will be removed from the 
scope of RC) run
``` bash
$ kubectl label pod <pods name> type=special
$ kubectl label pod <pods name> app=kubapp2 --overwrite
$ kubectl get po
```

3. To scale your RC up run
``` bash
$ kubectl scale rc kubapp --replicas=10
```

4. To delete the RC without all pods, run:
``` bash
$ kubectl delete rc kubapp --cascade=false
```

5. To start a new ReplicaSet run
``` bash
$ kubectl create -f kubapp-rs.yaml
```

6. To check the information about your ReplicaSet run:
``` bash
$ kubectl describe rs
```

7. Example of scheduled job:
``` 
apiVersion: batch/v2alpha1
kind: CronJob
spec:
  schedule: "0 3 * * *"
  startingDeadlineSeconds: 15
...
```


Add a schedule job example
Add a schedule job example
