tx-verifier.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: tx-verifier-with-monitor
  5. spec:
  6. selector:
  7. matchLabels:
  8. app: tx-verifier-with-monitor
  9. template:
  10. metadata:
  11. labels:
  12. app: tx-verifier-with-monitor
  13. spec:
  14. securityContext:
  15. runAsUser: 1000
  16. runAsGroup: 1000
  17. fsGroup: 1000
  18. containers:
  19. - name: tx-verifier
  20. image: guardiand-image
  21. volumeMounts:
  22. - name: log-volume
  23. mountPath: /logs
  24. command:
  25. ["/bin/sh", "-c"]
  26. # See `ethereum/.env.test` and related shell scripts for how these values are configured in localnet testing.
  27. args:
  28. - |
  29. exec /guardiand \
  30. transfer-verifier \
  31. evm \
  32. --rpcUrl ws://eth-devnet:8545 \
  33. --coreContract 0xC89Ce4735882C9F0f0FE26686c53074E09B0D550 \
  34. --tokenContract 0x0290FB167208Af455bB137780163b7B7a9a10C16 \
  35. --wrappedNativeContract 0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E \
  36. --logLevel=info \
  37. 2> /logs/error.log \
  38. - name: tx-verifier-monitor
  39. image: tx-verifier-monitor
  40. volumeMounts:
  41. - name: log-volume
  42. mountPath: /logs
  43. env:
  44. - name: ERROR_PATTERN
  45. # This error string comes from the transfer-verifier binary in node/
  46. value: "invalid receipt: no deposits and no transfers"
  47. - name: ERROR_LOG_PATH
  48. value: "/logs/error.log"
  49. volumes:
  50. - name: log-volume
  51. emptyDir: {}