apiVersion: apps/v1
kind: Deployment
metadata:
  name: ubuntu
spec:
  selector:
    matchLabels:
      app: ubuntu
      version: v1
  replicas: 1
  template:
    metadata:
      labels:
        app: ubuntu
        version: v1
    spec:
      containers:
        - name: ubuntu
          image: ubuntu
          imagePullPolicy: IfNotPresent
          command:
            - sleep
            - infinity
          volumeMounts:
            - mountPath: /tmp/udsver
              name: test-volume
      volumes:
        - name: test-volume
          flexVolume:
            driver: nodeagent/uds
