<p>Output of <code>kubectl create -f redis.yaml</code>:</p>

<blockquote>
  <p>Error from server (BadRequest): error when creating "redis.yaml":
  DaemonSet in version "v1" cannot be handled as a DaemonSet: no kind
  "DaemonSet" is registered for version "apps/v1"</p>
</blockquote>

<p>What does this error indicate? How could I solve it?</p>

<p><strong>redis.yaml</strong></p>

<pre><code>apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: redis
  labels:
    app: redis
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      terminationGracePeriodSeconds: 30
      tolerations:
        - key: node-role.kubernetes.io/master
          effect: NoSchedule
      containers:
        - image: redis:4.0-alpine
          name: redis
</code></pre>

Chris Stryczynski
<p>The version was set too low:</p>

<pre><code>apiVersion: apps/v1beta2
</code></pre>
