check-attestations.yaml 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: check-attestations
  6. labels:
  7. app: check-attestations
  8. spec:
  9. clusterIP: None
  10. selector:
  11. app: check-attestations
  12. ---
  13. apiVersion: apps/v1
  14. kind: StatefulSet
  15. metadata:
  16. name: check-attestations
  17. spec:
  18. selector:
  19. matchLabels:
  20. app: check-attestations
  21. serviceName: check-attestations
  22. replicas: 1
  23. template:
  24. metadata:
  25. labels:
  26. app: check-attestations
  27. spec:
  28. restartPolicy: Always
  29. terminationGracePeriodSeconds: 0
  30. containers:
  31. - name: check-attestations
  32. image: check-attestations
  33. command:
  34. - python3
  35. - /usr/src/pyth/check_attestations.py
  36. tty: true
  37. readinessProbe:
  38. tcpSocket:
  39. port: 2000
  40. periodSeconds: 1
  41. failureThreshold: 300