K8s CKA Certificate 6— Resource Objects for Different Application Scenarios

Tony
8 min readAug 12, 2024

In this article, let’s talk about a few other resource objects. Namespaces are used to group and isolate resource objects in K8s. Jobs and CronJobs are used to deploy tasks and scheduled task applications. DaemonSets are used to deploy node daemon applications. ConfigMaps and Secrets are used to configure environment variables and configuration files for Pods. These resource objects provide more powerful features centered around the Pod deployment unit.

Namespace

Namespace is used to create logical isolation partitions for K8s resource objects. Different access permissions and resource quotas can be set for namespaces, so you need to plan your namespaces before deploying resource objects in a K8s cluster. After setting up K8s, several initial namespaces are automatically created, such as default (the default namespace) and kube-system (the namespace for K8s components).

Namespaces are commonly used in the following application scenarios:

Cluster Divided by Different Projects

For example, project 1 has the namespace project1-ns and project 2 has the namespace project2-ns. Resources related to project 1 are deployed in the project1-ns namespace, and resources related to project 2 are…

--

--