apiVersion: apps/v1
kind: Deployment
metadata:
  name: udsver-client
spec:
  selector:
    matchLabels:
      app: udsver-client
      version: v1
  replicas: 2
  template:
    metadata:
      labels:
        app: udsver-client
        version: v1
    spec:
      securityContext:
        fsGroup: 0
      containers:
      - name: udsver-client
        image: quay.io/saurabh/udsver:latest
        imagePullPolicy: IfNotPresent
        args: [ "-c", "-s", "/tmp/udsver/nodeagent/socket" ]
        volumeMounts:
        - mountPath: /tmp/udsver
          name: test-volume
      volumes:
        - name: test-volume
          flexVolume:
            driver: nodeagent/uds
