Files
k8s-manifests/polymarket-bot/deployment-api.yaml
T
chemavx 45c4dde929 fix(polymarket-bot): fix corrupted secret and migrate to Gitea registry images
- Fix bot-secrets: replace corrupted REDACTED base64 values with correct ones
- Update deployment-api and deployment-bot to use git.chemavx.xyz registry images
- Add imagePullSecrets (gitea-registry) to api and bot deployments
- Add secret-gitea-registry.yaml manifest for ArgoCD to manage

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 20:27:23 +00:00

56 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: api
namespace: polymarket-bot
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: api
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: api
spec:
imagePullSecrets:
- name: gitea-registry
containers:
- command:
- uvicorn
- api.main:app
- --host
- 0.0.0.0
- --port
- "8000"
envFrom:
- secretRef:
name: bot-secrets
image: git.chemavx.xyz/chemavx/polymarket-bot-api:1dd01e03
imagePullPolicy: Always
name: api
ports:
- containerPort: 8000
protocol: TCP
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