deploy.yaml.tmpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: aiproxy
  5. namespace: aiproxy-system
  6. labels:
  7. cloud.sealos.io/app-deploy-manager: aiproxy
  8. spec:
  9. ports:
  10. - port: 3000
  11. targetPort: 3000
  12. selector:
  13. app: aiproxy
  14. ---
  15. apiVersion: apps/v1
  16. kind: Deployment
  17. metadata:
  18. name: aiproxy
  19. namespace: aiproxy-system
  20. annotations:
  21. originImageName: ghcr.io/labring/aiproxy:latest
  22. deploy.cloud.sealos.io/minReplicas: '3'
  23. deploy.cloud.sealos.io/maxReplicas: '3'
  24. labels:
  25. cloud.sealos.io/app-deploy-manager: aiproxy
  26. app: aiproxy
  27. spec:
  28. replicas: 3
  29. revisionHistoryLimit: 1
  30. selector:
  31. matchLabels:
  32. app: aiproxy
  33. strategy:
  34. type: RollingUpdate
  35. rollingUpdate:
  36. maxUnavailable: 0
  37. maxSurge: 1
  38. template:
  39. metadata:
  40. labels:
  41. app: aiproxy
  42. spec:
  43. terminationGracePeriodSeconds: 600
  44. containers:
  45. - name: aiproxy
  46. image: ghcr.io/labring/aiproxy:latest
  47. envFrom:
  48. - configMapRef:
  49. name: aiproxy-env
  50. resources:
  51. requests:
  52. cpu: 50m
  53. memory: 50Mi
  54. limits:
  55. cpu: 500m
  56. memory: 512Mi
  57. ports:
  58. - containerPort: 3000
  59. imagePullPolicy: Always
  60. startupProbe:
  61. httpGet:
  62. port: 3000
  63. path: /api/status
  64. initialDelaySeconds: 5
  65. periodSeconds: 3
  66. failureThreshold: 30
  67. successThreshold: 1
  68. timeoutSeconds: 1
  69. serviceAccountName: default
  70. automountServiceAccountToken: false