mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Disable worker for now
This commit is contained in:
+90
-90
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user