Skip to content
Snippets Groups Projects
theodolite.yaml 1.9 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: bvonheid/theodolite:latest
          # imagePullPolicy: Never # Used to pull "own" local image
          env:
            - name: UC
              value: "1"
            - name: LOADS
              value: "13206, 19635"
            - name: INSTANCES
              value: "1, 2"
            - name: DURATION
              value: "3"
            - name: PARTITIONS
              value: "30"
            # - name: SEARCH_STRATEGY
            #   value: ""
            # - name: CPU_LIMIT
            #   value: ""
            # - name: MEMORY_LIMIT
            #   value: ""
            - 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
              value: "1"
          volumeMounts:
            - mountPath: "/app/results"
              name: theodolite-pv-storage
      restartPolicy: Never
  backoffLimit: 4

# ---
# apiVersion: v1
# kind: ServiceAccount
# metadata:
#   name: theodolite
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: Role
# metadata:
#   name: modify-pods
# rules:
#   - apiGroups: [""]
#     resources:
#       - pods
#     verbs:
#       - get
#       - list
#       - delete
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: RoleBinding
# metadata:
#   name: modify-pods-to-sa
# subjects:
#   - kind: ServiceAccount
#     name: theodolite
# roleRef:
#   kind: Role
#   name: modify-pods
#   apiGroup: rbac.authorization.k8s.io