Improve public pages
This commit is contained in:
@@ -21,7 +21,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: rabbitmq
|
||||
image: rabbitmq:3.12-management-alpine
|
||||
image: rabbitmq:4.0-management-alpine
|
||||
ports:
|
||||
- containerPort: 5672
|
||||
name: amqp
|
||||
|
||||
@@ -18,6 +18,7 @@ resources:
|
||||
# Migration jobs
|
||||
- migrations/auth-migration-job.yaml
|
||||
- migrations/tenant-migration-job.yaml
|
||||
- migrations/tenant-seed-pilot-coupon-job.yaml
|
||||
- migrations/training-migration-job.yaml
|
||||
- migrations/forecasting-migration-job.yaml
|
||||
- migrations/sales-migration-job.yaml
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
# Seed job for PILOT2025 coupon - runs after tenant migration
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: tenant-seed-pilot-coupon
|
||||
namespace: bakery-ia
|
||||
labels:
|
||||
app.kubernetes.io/name: tenant-seed-pilot-coupon
|
||||
app.kubernetes.io/component: seed
|
||||
app.kubernetes.io/part-of: bakery-ia
|
||||
spec:
|
||||
backoffLimit: 3
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: tenant-seed-pilot-coupon
|
||||
app.kubernetes.io/component: seed
|
||||
spec:
|
||||
initContainers:
|
||||
- name: wait-for-db
|
||||
image: postgres:15-alpine
|
||||
command: ["sh", "-c", "until pg_isready -h tenant-db-service -p 5432; do sleep 2; done"]
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
- name: wait-for-migration
|
||||
image: bitnami/kubectl:latest
|
||||
command: ["sh", "-c", "until kubectl wait --for=condition=complete --timeout=300s job/tenant-migration -n bakery-ia 2>/dev/null; do echo 'Waiting for tenant migration...'; sleep 5; done"]
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
containers:
|
||||
- name: seed-coupon
|
||||
image: bakery/tenant-service:dev
|
||||
command: ["python", "/app/services/tenant/scripts/seed_pilot_coupon.py"]
|
||||
env:
|
||||
- name: TENANT_DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: database-secrets
|
||||
key: TENANT_DATABASE_URL
|
||||
- name: LOG_LEVEL
|
||||
value: "INFO"
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
restartPolicy: OnFailure
|
||||
Reference in New Issue
Block a user