Skip to content

Issues deploying Solid Worker #92

@tomaszgawliksa

Description

@tomaszgawliksa

Hello,
Trying to use this Helm chart and deploy to Kubernetes cluster.
There is one Deployment which is crashing with this:

Defaulted container "multiwoven-solid-worker" out of: multiwoven-solid-worker, copy-config (init)
sh: 1: ./app/solid_queue/cli/worker: not found

Seems like this binary is missing in the latest Dockerfile? Exploring the Pod I was not able to find it.

Also I'm not sure what KUBERNETES_CLUSTER_DOMAIN should be set to please? And what does it do?

Let me know if you need more context.

Deployment:

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    meta.helm.sh/release-name: multiwoven
    meta.helm.sh/release-namespace: experimental-multiwoven
  labels:
    app: multiwoven-solid-worker
    app.kubernetes.io/instance: multiwoven
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: multiwoven
    app.kubernetes.io/version: 0.61.0
    helm.sh/chart: multiwoven-0.61.0
    io.kompose.service: multiwoven-solid-worker
  name: multiwoven-solid-worker
  namespace: experimental-multiwoven
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: multiwoven-solid-worker
      app.kubernetes.io/instance: multiwoven
      app.kubernetes.io/name: multiwoven
      io.kompose.service: multiwoven-solid-worker
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: multiwoven-solid-worker
        app.kubernetes.io/instance: multiwoven
        app.kubernetes.io/name: multiwoven
        io.kompose.service: multiwoven-solid-worker
    spec:
      automountServiceAccountToken: true
      containers:
      - args:
        - sh
        - -c
        - |
          ./app/solid_queue/cli/worker
        env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: cluster.local
        - name: MULTIWOVEN_WORKER_HEALTH_CHECK_PORT
          value: "9999"
        envFrom:
        - configMapRef:
            name: multiwoven-config
        image: multiwoven/multiwoven-server:latest
        imagePullPolicy: Always
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /health
            port: 9999
            scheme: HTTP
          initialDelaySeconds: 15
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: multiwoven-solid-worker
        ports:
        - containerPort: 9999
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /health
            port: 9999
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            cpu: "1"
            memory: 2Gi
          requests:
            cpu: 500m
            memory: 1Gi
        securityContext:
          allowPrivilegeEscalation: true
          capabilities:
            drop:
            - ALL
          privileged: false
          readOnlyRootFilesystem: true
          runAsGroup: 1000
          runAsUser: 1000
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /rails
          name: rails-config
      dnsPolicy: ClusterFirst
      initContainers:
      - command:
        - /bin/sh
        - -c
        - |
          mkdir -p /mnt/rails
          echo "Copying /rails to /mnt/rails"
          cp -r /rails/* /mnt/rails/ || echo "/rails/ directory is empty or missing"
        image: multiwoven/multiwoven-server:latest
        imagePullPolicy: IfNotPresent
        name: copy-config
        resources: {}
        securityContext:
          allowPrivilegeEscalation: true
          capabilities:
            drop:
            - ALL
          privileged: false
          readOnlyRootFilesystem: true
          runAsGroup: 1000
          runAsUser: 1000
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /mnt/rails
          name: rails-config
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        fsGroup: 1000
      serviceAccount: default
      serviceAccountName: default
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: rails-config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions