Sha256: 3f8ee34b1c58bb8537b24e3222b195c548f33ea1c417d564855e642342dcf14a

Contents?: true

Size: 909 Bytes

Versions: 58

Compression:

Stored size: 909 Bytes

Contents

---
title: DaemonSet
categories: dsl
---

## Example

Here's an example of a DaemonSet.

.kubes/resources/shared/daemon_set.rb

```ruby
name "calico-node"
namespace "kube-system"
labels("k8s-app": "calico-node")
updateStrategy(
  type: "RollingUpdate",
  rollingUpdate: {
    maxUnavailable: 1
  }
)
annotations(
  "*scheduler**.alpha.kubernetes.io/critical-pod": '*'
)
```

Produces:

.kubes/output/shared/daemon_set.yaml

```yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
  annotations:
    "*scheduler**.alpha.kubernetes.io/critical-pod": "*"
  name: calico-node
  labels:
    k8s-app: calico-node
  namespace: kube-system
spec:
  updateStrategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 1
```

## DSL Methods

Here's a list of more common methods:

* minReadySeconds
* revisionHistoryLimit
* selector
* template
* updateStrategy

{% include dsl/methods.md name="daemon_set" %}

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
kubes-0.9.3 docs/_docs/dsl/resources/daemon_set.md
kubes-0.9.2 docs/_docs/dsl/resources/daemon_set.md
kubes-0.9.1 docs/_docs/dsl/resources/daemon_set.md
kubes-0.9.0 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.10 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.9 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.8 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.7 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.6 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.5 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.4 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.3 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.2 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.1 docs/_docs/dsl/resources/daemon_set.md
kubes-0.8.0 docs/_docs/dsl/resources/daemon_set.md
kubes-0.7.10 docs/_docs/dsl/resources/daemon_set.md
kubes-0.7.9 docs/_docs/dsl/resources/daemon_set.md
kubes-0.7.8 docs/_docs/dsl/resources/daemon_set.md
kubes-0.7.7 docs/_docs/dsl/resources/daemon_set.md
kubes-0.7.6 docs/_docs/dsl/resources/daemon_set.md