SPB Git forge

spb/uqo-chat

Public
14commits 1branches 0releases
1.4 MBsize
maindefault branch
17 days agolast push
Python 64.6% TypeScript 33.7% CSS 0.8%
1.3 KB · 29 lines yaml
Raw Blame History
1apiVersion: apps/v12kind: Deployment3metadata: { name: api, namespace: uqo-chat }4spec:5  replicas: 26  selector: { matchLabels: { app: api } }7  template:8    metadata: { labels: { app: api } }9    spec:10      securityContext: { runAsNonRoot: true, seccompProfile: { type: RuntimeDefault } }11      containers:12        - name: api13          image: ghcr.io/ORG/uqo-chat-api:latest14          ports: [{ containerPort: 8190 }]15          envFrom: [{ secretRef: { name: uqo-chat-secrets } }, { configMapRef: { name: uqo-chat-config } }]16          env:17            - { name: SANDBOX_URL, value: http://sandbox-runner:8080 }18            - { name: DATABASE_URL, valueFrom: { secretKeyRef: { name: uqo-chat-secrets, key: DATABASE_URL } } }19          resources: { requests: { cpu: 250m, memory: 512Mi }, limits: { cpu: "1", memory: 1Gi } }20          readinessProbe: { httpGet: { path: /api/v1/ready, port: 8190 }, initialDelaySeconds: 5 }21          livenessProbe: { httpGet: { path: /api/v1/health, port: 8190 }, periodSeconds: 20 }22          volumeMounts: [{ name: data, mountPath: /data }]23      volumes: [{ name: data, persistentVolumeClaim: { claimName: uqo-chat-data } }]24---25apiVersion: v126kind: PersistentVolumeClaim27metadata: { name: uqo-chat-data, namespace: uqo-chat }28spec: { accessModes: [ReadWriteMany], resources: { requests: { storage: 20Gi } } }29