Skip to content
Snippets Groups Projects
theodolite.yaml 1.62 KiB
Newer Older
apiVersion: batch/v1
kind: Job
metadata:
  name: theodolite
spec:
  template:
    spec:
      volumes:
      - name: theodolite-pv-storage
        persistentVolumeClaim:
          claimName: theodolite-pv-claim
        - name: theodolite
          image: ghcr.io/cau-se/theodolite:latest
          # imagePullPolicy: Never # Used to pull "own" local image
          env:
            - name: LOADS # mandatory
              value: "100000, 200000"
            - name: INSTANCES # mandatory
              value: "1, 2, 3"
            # - name: DURATION
            #   value: "5"
            # - name: PARTITIONS
            #   value: "40"
            # - name: DOMAIN_RESTRICTION
            #   value: "True"
            # - name: SEARCH_STRATEGY
            # - name: CPU_LIMIT
            # - name: MEMORY_LIMIT
            - name: PROMETHEUS_BASE_URL
              value: "http://prometheus-operated:9090"
            # - name: NAMESPACE
            #   value: "default"
            # - name: CONFIGURATIONS
            #   value: "COMMIT_INTERVAL_MS=100, NUM_STREAM_THREADS=1"
            - name: RESULT_PATH
              value: "results"
            - name: PYTHONUNBUFFERED # Enable logs in Kubernetes
              value: "1"
          volumeMounts:
            - mountPath: "/app/results"
              name: theodolite-pv-storage
      restartPolicy: Never
      # Uncomment if RBAC is enabled and configured
      # serviceAccountName: theodolite