PHP 7.4.33
Preview: retool-jobs-runner.yaml Size: 2.01 KB
//retool/retool-onpremise/kubernetes/retool-jobs-runner.yaml

apiVersion: apps/v1 
kind: Deployment
metadata:
  labels:
    app: jobs-runner
  name: jobs-runner
spec:
  replicas: 1 # jobs-runner pod should never be more than 1
  selector:
    matchLabels:
      app: jobs-runner
  template:
    metadata:
      labels:
        app: jobs-runner
    spec:
      containers:
      - args:
        - bash
        - -c
        - ./docker_scripts/wait-for-it.sh -t 0 $POSTGRES_HOST:$POSTGRES_PORT;
          ./docker_scripts/start_api.sh
        env:
        - name: JWT_SECRET
          valueFrom:
            secretKeyRef:
              name: retoolsecrets
              key: jwt_secret
        - name: DEPLOYMENT_TEMPLATE_TYPE
          value: k8s-manifests
        - name: SERVICE_TYPE
          value: JOBS_RUNNER
        - name: NODE_ENV
          value: production
        - name: POSTGRES_DB
          value: hammerhead_production
        - name: POSTGRES_HOST
          value: postgres
        - name: POSTGRES_PORT
          value: "5432"
        - name: POSTGRES_USER
          value: retool_internal_user
        - name: POSTGRES_PASSWORD
          valueFrom:
            secretKeyRef:
              name: retoolsecrets
              key: postgres_password
        - name: ENCRYPTION_KEY
          valueFrom:
            secretKeyRef:
              name: retoolsecrets
              key: encryption_key
        - name: LICENSE_KEY
          valueFrom:
            secretKeyRef:
              name: retoolsecrets
              key: license_key
        - name: CLIENT_ID
          valueFrom:
            secretKeyRef:
              name: retoolsecrets
              key: google_client_id
        - name: CLIENT_SECRET
          valueFrom:
            secretKeyRef:
              name: retoolsecrets
              key: google_client_secret
        image: tryretool/backend:X.Y.Z
        name: jobs-runner
        ports:
        - containerPort: 3000
        resources:
          limits:
            cpu: 4
            memory: 8Gi
          requests:
            cpu: 2
            memory: 4Gi
      restartPolicy: Always

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
2.19 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
2.16 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
1.55 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
2.75 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
2.01 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
1.40 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
546 B lrw-r--r-- 2025-11-05 08:36:50
Edit Download
2.46 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download
2.53 KB lrw-r--r-- 2025-11-05 08:36:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).