<p>I'm getting following error which attaching azureVhd to kubernetes pod.</p>

<blockquote>
  <p>error validating "dev-dev-mongo-rc.yaml": error validating data: found
  invalid field azureVhd for v1.Volume; if you choose to ignore these
  errors, turn validation off with --validate=false</p>
</blockquote>

<p>kubernetes version :
$ kubectl version </p>

<blockquote>
  <p>Client Version: version.Info{Major:"1",
  Minor:"1", GitVersion:"v1.1.2",
  GitCommit:"3085895b8a70a3d985e9320a098e74f545546171",
  GitTreeState:"clean"} Server Version: version.Info{Major:"1",
  Minor:"1", GitVersion:"v1.1.2",
  GitCommit:"3085895b8a70a3d985e9320a098e74f545546171",
  GitTreeState:"clean"}</p>
</blockquote>

<p>replicationController-rc.yaml </p>

<pre><code>kind: "ReplicationController"
apiVersion: "v1"
metadata:
  name: "test"
spec:
  replicas: 1
  selector:
    name: "test"
  template:
    metadata:
      labels:
        name: "test"
    spec:
      volumes:
        -
          name: "mongo-disk"
          azureVhd:
            vhdUrl: "https://portalvhds1459021060022.blob.core.windows.net/vhd-store/stable-mongo-01.vhd"
            fsType: "ext4"
            readOnly: false
      containers:
        -
          name: "mongo"
          image: "docker.io/mongo:3.2"
          resources:
            limits:
              cpu: "0.2"
              memory: "0.5Gi"
          ports:
            -
              containerPort: 27017
              protocol: "TCP"
          resources: {}
          volumeMounts:
            -
              name: "mongo-disk"
              mountPath: "/data/db"
          imagePullPolicy: "IfNotPresent"
      restartPolicy: "Always"
</code></pre>

<p><p> You could find complete k8s azure disk mount example here:
<a href="https://github.com/andyzhangx/Demo/tree/master/linux/azuredisk" rel="nofollow noreferrer">https://github.com/andyzhangx/Demo/tree/master/linux/azuredisk</a></p>

<p><p> yaml config of azure disk Static Provisioning is as following:</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
 name: nginx-azuredisk
spec:
 containers:
  - image: nginx
    name: nginx-azuredisk
    volumeMounts:
      - name: azure
        mountPath: /mnt/disk
 volumes:
      - name: azure
        azureDisk:
          diskName: test.vhd
          diskURI: https://YOURSTORAGEACCOUNT.blob.core.windows.net/vhds/test.vhd
</code></pre>
