Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Explained Kubernetes DaemonSet with Example

Creating a Kubernetes DaemonSet

Let’s use a simple DaemonSet for Apache HTTP server to illustrate this

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: logging
spec:
  selector:
    matchLabels:
      app: httpd-logging
  template:
    metadata:
      labels:
        app: httpd-logging
    spec:
      containers:
        - name: webserver
          image: httpd
          ports:
          - containerPort: 80

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)