p2w-attest.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: p2w-attest
  6. labels:
  7. app: p2w-attest
  8. spec:
  9. ports:
  10. - port: 4343
  11. name: p2w-attest
  12. protocol: TCP
  13. clusterIP: None
  14. selector:
  15. app: p2w-attest
  16. ---
  17. apiVersion: apps/v1
  18. kind: StatefulSet
  19. metadata:
  20. name: p2w-attest
  21. spec:
  22. selector:
  23. matchLabels:
  24. app: p2w-attest
  25. serviceName: p2w-attest
  26. replicas: 1
  27. template:
  28. metadata:
  29. labels:
  30. app: p2w-attest
  31. spec:
  32. restartPolicy: Always
  33. terminationGracePeriodSeconds: 0
  34. containers:
  35. - name: p2w-attest
  36. image: p2w-attest
  37. command:
  38. - python3
  39. - /usr/src/pyth/p2w_autoattest.py
  40. env:
  41. - name: P2W_INITIALIZE_SOL_CONTRACT
  42. value: "1"
  43. - name: P2W_EXIT_ON_ERROR
  44. value: "true"
  45. tty: true
  46. readinessProbe:
  47. tcpSocket:
  48. port: 2000
  49. periodSeconds: 1
  50. failureThreshold: 300
  51. ports:
  52. - containerPort: 4343
  53. name: p2w-attest
  54. protocol: TCP