42 lines
850 B
YAML
42 lines
850 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: check-attestations
|
||
|
labels:
|
||
|
app: check-attestations
|
||
|
spec:
|
||
|
clusterIP: None
|
||
|
selector:
|
||
|
app: check-attestations
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: check-attestations
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: check-attestations
|
||
|
serviceName: check-attestations
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: check-attestations
|
||
|
spec:
|
||
|
restartPolicy: Always
|
||
|
terminationGracePeriodSeconds: 0
|
||
|
containers:
|
||
|
- name: check-attestations
|
||
|
image: check-attestations
|
||
|
command:
|
||
|
- python3
|
||
|
- /usr/src/pyth/check_attestations.py
|
||
|
tty: true
|
||
|
readinessProbe:
|
||
|
tcpSocket:
|
||
|
port: 2000
|
||
|
periodSeconds: 1
|
||
|
failureThreshold: 300
|