From 04dbfe0fe7ea6ae606cbe960981de661f1a16d4d Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Tue, 1 Jul 2025 21:48:22 +1000 Subject: [PATCH] Disable worker for now --- k8s/manifest.yaml | 180 +++++++++++++++++++++++----------------------- 1 file changed, 90 insertions(+), 90 deletions(-) diff --git a/k8s/manifest.yaml b/k8s/manifest.yaml index b965855..c836151 100644 --- a/k8s/manifest.yaml +++ b/k8s/manifest.yaml @@ -266,94 +266,94 @@ spec: port: number: 80 --- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: links-worker - labels: - tags.datadoghq.com/env: "prod" - tags.datadoghq.com/service: "links-worker" -spec: - selector: - matchLabels: - app: links-worker - replicas: 1 - template: - metadata: - labels: - app: links-worker - tags.datadoghq.com/env: "prod" - tags.datadoghq.com/service: "links-worker" - spec: - volumes: - - name: data - persistentVolumeClaim: - claimName: links-pvc - - name: cache - emptyDir: {} - containers: - - name: celery-worker - image: "ghcr.io/wahyd4/links:main" - command: ["sh", "-c", "uv run celery -A core worker --loglevel=info"] - securityContext: - runAsUser: 1000 - imagePullPolicy: Always - volumeMounts: - - name: data - mountPath: /app/data - - name: cache - mountPath: /app/.cache - env: - - name: DB_HOST - value: new-postgres-postgresql.db.svc.cluster.local - - name: DB_NAME - value: badges - - name: DB_USERNAME - value: postgres - - name: CELERY_BROKER_URL - value: "redis://redis-master.db.svc.cluster.local:6379" - - name: CELERY_RESULT_BACKEND - value: "redis://redis-master.db.svc.cluster.local:6379" - - name: UV_CACHE_DIR - value: "/app/.cache/uv" - resources: - requests: - cpu: 200m - memory: 256Mi - limits: - cpu: 2000m - memory: 2000Mi +# apiVersion: apps/v1 +# kind: Deployment +# metadata: +# name: links-worker +# labels: +# tags.datadoghq.com/env: "prod" +# tags.datadoghq.com/service: "links-worker" +# spec: +# selector: +# matchLabels: +# app: links-worker +# replicas: 1 +# template: +# metadata: +# labels: +# app: links-worker +# tags.datadoghq.com/env: "prod" +# tags.datadoghq.com/service: "links-worker" +# spec: +# volumes: +# - name: data +# persistentVolumeClaim: +# claimName: links-pvc +# - name: cache +# emptyDir: {} +# containers: +# - name: celery-worker +# image: "ghcr.io/wahyd4/links:main" +# command: ["sh", "-c", "uv run celery -A core worker --loglevel=info"] +# securityContext: +# runAsUser: 1000 +# imagePullPolicy: Always +# volumeMounts: +# - name: data +# mountPath: /app/data +# - name: cache +# mountPath: /app/.cache +# env: +# - name: DB_HOST +# value: new-postgres-postgresql.db.svc.cluster.local +# - name: DB_NAME +# value: badges +# - name: DB_USERNAME +# value: postgres +# - name: CELERY_BROKER_URL +# value: "redis://redis-master.db.svc.cluster.local:6379" +# - name: CELERY_RESULT_BACKEND +# value: "redis://redis-master.db.svc.cluster.local:6379" +# - name: UV_CACHE_DIR +# value: "/app/.cache/uv" +# resources: +# requests: +# cpu: 200m +# memory: 256Mi +# limits: +# cpu: 2000m +# memory: 2000Mi - - name: celery-beat - image: "ghcr.io/wahyd4/links:main" - command: ["sh", "-c", "uv run celery -A core beat -s /app/data/celerybeat-schedule --loglevel=info"] - securityContext: - runAsUser: 1000 - imagePullPolicy: Always - volumeMounts: - - name: data - mountPath: /app/data - - name: cache - mountPath: /app/.cache - env: - - name: DB_HOST - value: new-postgres-postgresql.db.svc.cluster.local - - name: DB_NAME - value: badges - - name: DB_USERNAME - value: postgres - - name: CELERY_BROKER_URL - value: "redis://redis-master.db.svc.cluster.local:6379" - - name: CELERY_RESULT_BACKEND - value: "redis://redis-master.db.svc.cluster.local:6379" - - name: UV_CACHE_DIR - value: "/app/.cache/uv" - resources: - requests: - cpu: 200m - memory: 256Mi - limits: - cpu: 1000m - memory: 1000Mi - imagePullSecrets: - - name: github-image-pull-secret +# - name: celery-beat +# image: "ghcr.io/wahyd4/links:main" +# command: ["sh", "-c", "uv run celery -A core beat -s /app/data/celerybeat-schedule --loglevel=info"] +# securityContext: +# runAsUser: 1000 +# imagePullPolicy: Always +# volumeMounts: +# - name: data +# mountPath: /app/data +# - name: cache +# mountPath: /app/.cache +# env: +# - name: DB_HOST +# value: new-postgres-postgresql.db.svc.cluster.local +# - name: DB_NAME +# value: badges +# - name: DB_USERNAME +# value: postgres +# - name: CELERY_BROKER_URL +# value: "redis://redis-master.db.svc.cluster.local:6379" +# - name: CELERY_RESULT_BACKEND +# value: "redis://redis-master.db.svc.cluster.local:6379" +# - name: UV_CACHE_DIR +# value: "/app/.cache/uv" +# resources: +# requests: +# cpu: 200m +# memory: 256Mi +# limits: +# cpu: 1000m +# memory: 1000Mi +# imagePullSecrets: +# - name: github-image-pull-secret