---
apiVersion: v1
kind: Service
metadata:
  name: multisig
  labels:
    app: multisig
spec:
  clusterIP: None
  selector:
    app: multisig
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: multisig
spec:
  selector:
    matchLabels:
      app: multisig
  serviceName: multisig
  template:
    metadata:
      labels:
        app: multisig
    spec:
      restartPolicy: Always
      terminationGracePeriodSeconds: 0
      containers:
        - name: multisig
          image: multisig
          readinessProbe:
            tcpSocket:
              port: 2000
            periodSeconds: 1
            failureThreshold: 300
          command:
            - python3
            - /root/pyth/prepare_multisig.py
