Skip to main content

DaemonSet



Resource Icon

Resource Overview

A DaemonSet is a Kubernetes resource that ensures all(or some) nodes run a copy of a Pod. When a new node is added to the cluster, a Pod is automatically added to that node.

Associated Resources

Parent Resource

Connected Resources

Resource Setting Values

  • service_name : Name of the DaemonSet resource

  • namespace : Namespace where DaemonSet resources will be deployed

  • annotations : A key-value used to display necessary information in the Kubernetes system

  • labels : To distinguish objects, the user arbitrarily specifies the desired value

  • template_labels : Labels applied to Pods created per node

  • containers : Defines templates for containers belonging to a pod - You can set default values and apply them, and then configure detailed settings.

    • containers.name : Name of the container

      • image : Docker image name to use

      • args : Commands to be executed in the container

      • command : Commands to be executed in the container

      • port : List of ports to expose in container

      • resources : Specifies the amount of resources in the container - Detailed settings

        • name : Specify minimum/maximum amount of computing resources - Limits, requests
        • cpu : Specifies the amount of cpu(m)
        • memory : Specifies the amount of memory(Mi)
      • probe : Define how to diagnose the health of a Pod - Detailed settings

        • name : Probe method selection - startup, liveness, readiness
        • http_get_path : Path to access the HTTP server
        • http_get_port : Port number to be accessed by the container
        • http_header : Custom headers to set in the request
        • initial_delay_seconds : Number of seconds after the container starts before the probe starts
        • period_seconds : How often to perform probes (in seconds)
      • env : Block of key-value pairs to set in container environment - Detailed settings

        • name : Name of the environment variable
        • value : Value for the environment variable
      • volume_mount : The Pod volume to mount on the container's file system - Detailed settings

        • name : Name of the volume mount
        • path
          • mount_path : Path within the container where the volume should be mounted
          • sub_path : Path within the container where the volume should be mounted
  • volume : List of volumes that containers in a Pod can mount

    • name : Volume name
    • type : Type of volume to mount - EmptyDir, ConfigMap, PersistentVolumeClaim
    • target_name : Name of persistent volume claim
    • default_mode : Mode to use for generated files - between 0 and 0777, default is 0644
    • read_only : If true, mounted read-only, otherwise read/write
  • image_pull_secrets : Secret in the same namespace containing the permissions needed to pull the image used by the Container

Reference Materials