Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
iconfalse
title목차

Table of Contents

DaemonSet 개요

Info
iconfalse
Info
  • 데몬셋은 각 Node마다 하나의 Pod만을 구성
  • 노드를 관리하는 용도로 주로 사용
Info

Image Modified

  • kube-proxy
  • kube-networking
  • Monitoring Solution
  • Logging Solution

DaemonSet Manifest

Info
iconfalse

https://dev-k8sref-io.web.app/docs/workloads/daemonset-v1/

Info
iconfalse


Code Block
linenumberstrue
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: monitorgin-daemon
spec:
  selector:
    matchLabels:
      app: monitoring-agent
  template:
    metadata:
      labels:
        app: monitoring-agent
    spec:
      containers:
        - name: monitoring-agent
          image: monitoring-agent
 


Code Block
linenumberstrue
sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f daemonset.yaml 
daemonset.apps/monitorgin-daemon created

sansae@sansaeAir15m2 k8s-lab-workspace % k get ds
NAME                DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
monitorgin-daemon   1         1         0       1            0           <none>          3s

sansae@sansaeAir15m2 k8s-lab-workspace % k describe ds monitorgin-daemon 
Name:           monitorgin-daemon
Selector:       app=monitoring-agent
Node-Selector:  <none>
Labels:         <none>
Annotations:    deprecated.daemonset.template.generation: 1
Desired Number of Nodes Scheduled: 1
Current Number of Nodes Scheduled: 1
Number of Nodes Scheduled with Up-to-date Pods: 1
Number of Nodes Scheduled with Available Pods: 0
Number of Nodes Misscheduled: 0
Pods Status:  0 Running / 1 Waiting / 0 Succeeded / 0 Failed
Pod Template:
  Labels:  app=monitoring-agent
  Containers:
   monitoring-agent:
    Image:        monitoring-agent
    Port:         <none>
    Host Port:    <none>
    Environment:  <none>
    Mounts:       <none>
  Volumes:        <none>
Events:
  Type    Reason            Age    From                  Message
  ----    ------            ----   ----                  -------
  Normal  SuccessfulCreate  9m41s  daemonset-controller  Created pod: monitorgin-daemon-sp26r

...