--- apiVersion: v1 kind: Service metadata: name: p2w-integration-observer labels: app: p2w-integration-observer spec: clusterIP: None selector: app: p2w-integration-observer --- apiVersion: apps/v1 kind: StatefulSet metadata: name: p2w-integration-observer spec: selector: matchLabels: app: p2w-integration-observer serviceName: p2w-integration-observer replicas: 1 template: metadata: labels: app: p2w-integration-observer spec: restartPolicy: Always terminationGracePeriodSeconds: 0 containers: - name: p2w-integration-observer image: p2w-integration-observer command: - npm - start workingDir: /usr/src/third_party/pyth/p2w-integration-observer/ tty: true readinessProbe: tcpSocket: port: 2000 periodSeconds: 1 failureThreshold: 300