title: Kubernetes unknown field "volumes"
body: <p>I am trying to deploy a simple nginx in kubernetes using hostvolumes. I use the next <strong>yaml</strong>:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: webserver
  spec:
    replicas: 1
    template:
      metadata:
        labels:
          app: webserver
      spec:
        containers:
        - name: webserver
          image: nginx:alpine
          ports:
          - containerPort: 80
          volumeMounts:
          - name: hostvol
            mountPath: /usr/share/nginx/html
      volumes:
      - name: hostvol
        hostPath:
          path: /home/docker/vol
  </code></pre>
  
  <p>When I deploy it <code>kubectl create -f webserver.yaml</code>, it throws the next error:</p>
  
  <pre><code>error: error validating "webserver.yaml": error validating data: ValidationError(Deployment.spec.template): unknown field "volumes" in io.k8s.api.core.v1.PodTemplateSpec; if you choose to ignore these errors, turn validation off with --validate=false
  </code></pre>