p2w-integration-observer.yaml 944 B

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