apiVersion: "apps/v1"
kind: StatefulSet
metadata:
  name: experiment-controller
spec:
  serviceName: experiment-controller
  replicas: 1
  selector:
    matchLabels:
      app: experiment-controller-0
  template:
    metadata:
      labels:
        app: experiment-controller-0
        technology: scalar
    spec:
      nodeSelector:
        monitoringNode: "yes"
      containers:
      - name: experiment-controller-0
        image: cedricdd/exp-ex
        imagePullPolicy: Always
        volumeMounts:
        - name: kubeconfig
          mountPath: ~/.kube/config
        - name: resultdata
          mountPath: /var
      volumes:
        - name: kubeconfig
          secret:
            secretName: default-token-mkqrn 
        - name: resultdata
          hostPath:
            path: /data/results
