Files
k8s-manifests/polymarket-bot/deployment-bot.yaml
T

50 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: bot
namespace: polymarket-bot
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: bot
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: bot
spec:
imagePullSecrets:
- name: gitea-registry
containers:
- command:
- python3
- -m
- bot.main
envFrom:
- secretRef:
name: bot-secrets
image: git.chemavx.xyz/chemavx/polymarket-bot:fe242ca5
imagePullPolicy: Always
name: bot
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30