apiVersion: apps/v1
kind: Deployment
metadata:
  name: seldon-spartakus-volunteer
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: seldon-spartakus-volunteer
  template:
    metadata:
      labels:
        app: seldon-spartakus-volunteer
    spec:
      containers:
      - args:
        - -c
        - /spartakus volunteer --cluster-id=$(cat /proc/sys/kernel/random/uuid) --database=http://seldon-core-stats.seldon.io
          --extensions=/etc/config/spartakus_volunteer_extensions
        command:
        - /bin/sh
        image: gcr.io/google_containers/spartakus-amd64:v1.1.0
        name: seldon-spartakus-volunteer
        volumeMounts:
        - mountPath: /etc/config
          name: seldon-spartakus-config-volume
      serviceAccountName: seldon-spartakus-volunteer
      volumes:
      - configMap:
          name: seldon-spartakus-config
        name: seldon-spartakus-config-volume
