Daemonsets
- Daemonsets are used to run a pod on each node or selected nodes
- They are useful for running agent like softwares in container
- Daemonset support rolling updates like deployments
- Lets write a simple spec to run a dameonset
- Refer Here for offical docs
- Refer Here for the changes done
Jobs and CronJobs
- Refer Here for cronjob demo
- Lets write a cronjob which runs every day at 11:30 PM
Refer Here
Namespace
- Refer Here for official docs
- In kubernetes we have api-resources
-
Resources are classified into two scopes
- Namespace scoped resources:
- Namespace true indicates namespace scoped resources
- Cluster scoped resources
- Namespaced false indicates cluster scoped resources
- Namespaced false indicates cluster scoped resources
- Namespace scoped resources:
-
Exercise:
- create a qa namespace (use manifest)
- create a nginx deployment with 3 replicas in qa namespace
- create a service with matches the labels in qa namespace
- create an alpine pod in default namespace, try pinging to the nginx service in qa namespace with name not ip
