release: bump version to 0.78.0
This commit is contained in:
1 parent
e6aa8c539b
commit
5fc698d738
96 files changed
+10214
-747
No files matched your search
@@ -33,20 +33,55 @@ spec:
|
||||
name: {{ include "planet.fullname" . }}-config
|
||||
- secretRef:
|
||||
name: {{ include "planet.fullname" . }}-secrets
|
||||
{{- if .Values.worker.enabled }}
|
||||
env:
|
||||
- name: PLANET_ROLE
|
||||
value: "api"
|
||||
{{- end }}
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /health/live
|
||||
port: http
|
||||
periodSeconds: 5
|
||||
failureThreshold: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
path: /health/ready
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
path: /health/live
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- name: earth-brand-data
|
||||
mountPath: /app/backend/data/earth-brand
|
||||
{{- if not .Values.worker.enabled }}
|
||||
- name: collector-cache
|
||||
mountPath: /root/.cache/planet/downloads
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.backend.resources | nindent 12 }}
|
||||
volumes:
|
||||
- name: earth-brand-data
|
||||
{{- if .Values.backend.persistence.earthBrand.existingClaim }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.backend.persistence.earthBrand.existingClaim | quote }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- if not .Values.worker.enabled }}
|
||||
- name: collector-cache
|
||||
{{- if .Values.backend.persistence.collectorCache.existingClaim }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.backend.persistence.collectorCache.existingClaim | quote }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -17,8 +17,7 @@ data:
|
||||
REDIS_SERVER: {{ $redisHost | quote }}
|
||||
REDIS_PORT: {{ .Values.redis.external.port | quote }}
|
||||
REDIS_DB: {{ .Values.redis.external.db | quote }}
|
||||
AI_BASE_URL: "http://{{ include "planet.fullname" . }}-aiprovider:{{ .Values.aiprovider.service.port }}"
|
||||
AI_PROVIDER_API: "http://{{ include "planet.fullname" . }}-aiprovider:{{ .Values.aiprovider.service.port }}"
|
||||
AI_PROVIDER_SERVICE_URL: "http://{{ include "planet.fullname" . }}-aiprovider:{{ .Values.aiprovider.service.port }}"
|
||||
{{- range $key, $value := .Values.backend.env }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
|
||||
@@ -37,6 +37,8 @@ spec:
|
||||
command: ["pg_isready", "-U", {{ .Values.postgresql.external.username | quote }}]
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
{{- toYaml .Values.postgresql.internal.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
@@ -47,7 +49,7 @@ spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
storage: 15Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -89,6 +91,13 @@ spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: redis:7-alpine
|
||||
args:
|
||||
- --appendonly
|
||||
- "yes"
|
||||
- --maxmemory
|
||||
- 256mb
|
||||
- --maxmemory-policy
|
||||
- allkeys-lru
|
||||
ports:
|
||||
- name: redis
|
||||
containerPort: 6379
|
||||
@@ -97,6 +106,8 @@ spec:
|
||||
command: ["redis-cli", "ping"]
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
{{- toYaml .Values.redis.internal.resources | nindent 12 }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
{{- if .Values.worker.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "planet.fullname" . }}-worker
|
||||
labels:
|
||||
{{- include "planet.labels" . | nindent 4 }}
|
||||
app.kubernetes.io/component: worker
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "planet.selectorLabels" . | nindent 6 }}
|
||||
app.kubernetes.io/component: worker
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "planet.selectorLabels" . | nindent 8 }}
|
||||
app.kubernetes.io/component: worker
|
||||
spec:
|
||||
{{- with .Values.global.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: worker
|
||||
image: {{ include "planet.image" (dict "root" . "repository" .Values.backend.image.repository) | quote }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command: ["uv", "run", "--frozen", "--no-dev", "--project", "/app", "python", "-m", "app.worker"]
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "planet.fullname" . }}-config
|
||||
- secretRef:
|
||||
name: {{ include "planet.fullname" . }}-secrets
|
||||
env:
|
||||
- name: PLANET_ROLE
|
||||
value: "worker"
|
||||
volumeMounts:
|
||||
- name: collector-cache
|
||||
mountPath: /root/.cache/planet/downloads
|
||||
resources:
|
||||
{{- toYaml .Values.worker.resources | nindent 12 }}
|
||||
volumes:
|
||||
- name: collector-cache
|
||||
{{- if .Values.backend.persistence.collectorCache.existingClaim }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.backend.persistence.collectorCache.existingClaim | quote }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -19,9 +19,18 @@ frontend:
|
||||
enabled: true
|
||||
className: nginx
|
||||
host: planet.example.com
|
||||
annotations: {}
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "180"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "180"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "25m"
|
||||
tls: []
|
||||
resources: {}
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
|
||||
backend:
|
||||
replicaCount: 1
|
||||
@@ -30,11 +39,43 @@ backend:
|
||||
service:
|
||||
port: 8000
|
||||
env:
|
||||
APP_ENV: production
|
||||
PLANET_ROLE: all
|
||||
PROJECT_NAME: Planet
|
||||
CORS_ORIGINS: '["*"]'
|
||||
CORS_ORIGINS: '[]'
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES: "60"
|
||||
REFRESH_TOKEN_EXPIRE_DAYS: "7"
|
||||
COLLECTOR_MAX_CONCURRENCY: "2"
|
||||
COLLECTOR_HEAVY_CONCURRENCY: "1"
|
||||
secretEnv:
|
||||
SECRET_KEY: change-me
|
||||
resources: {}
|
||||
SECRET_KEY: replace-with-strong-32-char-random-secret
|
||||
AI_PROVIDER_SERVICE_TOKEN: replace-with-internal-token
|
||||
SETTINGS_ENCRYPTION_KEY: ""
|
||||
INITIAL_ADMIN_USERNAME: ""
|
||||
INITIAL_ADMIN_EMAIL: ""
|
||||
INITIAL_ADMIN_PASSWORD: ""
|
||||
persistence:
|
||||
earthBrand:
|
||||
existingClaim: ""
|
||||
collectorCache:
|
||||
existingClaim: ""
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
|
||||
worker:
|
||||
enabled: false
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
|
||||
aiprovider:
|
||||
replicaCount: 1
|
||||
@@ -43,15 +84,29 @@ aiprovider:
|
||||
service:
|
||||
port: 8010
|
||||
env:
|
||||
APP_ENV: production
|
||||
AI_PROVIDER: openai
|
||||
AI_MODEL: gpt-4o-mini
|
||||
secretEnv:
|
||||
AI_API_KEY: ""
|
||||
resources: {}
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 512Mi
|
||||
|
||||
postgresql:
|
||||
internal:
|
||||
enabled: false
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
external:
|
||||
host: postgres.example.com
|
||||
port: 5432
|
||||
@@ -62,6 +117,13 @@ postgresql:
|
||||
redis:
|
||||
internal:
|
||||
enabled: false
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
external:
|
||||
host: redis.example.com
|
||||
port: 6379
|
||||
@@ -69,5 +131,5 @@ redis:
|
||||
|
||||
smoke:
|
||||
frontendPath: /
|
||||
backendHealthPath: /health
|
||||
backendHealthPath: /health/ready
|
||||
aiProviderHealthPath: /health
|
||||
Reference in new issue
Block a user