spy.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: spy
  6. labels:
  7. app: spy
  8. spec:
  9. ports:
  10. - port: 7072
  11. name: spyrpc
  12. protocol: TCP
  13. - port: 6060
  14. name: status
  15. protocol: TCP
  16. clusterIP: None
  17. selector:
  18. app: spy
  19. ---
  20. apiVersion: apps/v1
  21. kind: StatefulSet
  22. metadata:
  23. name: spy
  24. spec:
  25. selector:
  26. matchLabels:
  27. app: spy
  28. serviceName: spy
  29. replicas: 1
  30. template:
  31. metadata:
  32. labels:
  33. app: spy
  34. spec:
  35. terminationGracePeriodSeconds: 0
  36. containers:
  37. - name: spy
  38. image: guardiand-image
  39. command:
  40. - /guardiand
  41. - spy
  42. - --nodeKey
  43. - /tmp/node.key
  44. - --spyRPC
  45. - "[::]:7072"
  46. - --network
  47. - /wormhole/dev
  48. # Hardcoded devnet bootstrap (generated from deterministic key in guardiand)
  49. - --bootstrap
  50. - /dns4/guardian-0.guardian/udp/8999/quic/p2p/12D3KooWL3XJ9EMCyZvmmGXL2LMiVBtrVa2BuESsJiXkSj7333Jw
  51. - --ethRPC
  52. - http://eth-devnet:8545
  53. - --ethContract
  54. - "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"
  55. - --logLevel=warn
  56. ports:
  57. - containerPort: 7072
  58. name: spyrpc
  59. protocol: TCP
  60. - containerPort: 6060
  61. name: status
  62. protocol: TCP
  63. readinessProbe:
  64. httpGet:
  65. port: 6060
  66. path: /metrics