Skip to content
Snippets Groups Projects
Commit d949db84 authored by Björn Vonheiden's avatar Björn Vonheiden Committed by Sören Henning
Browse files

Enable theodolite script to run in kubernetes

parent d945fc13
No related branches found
No related tags found
No related merge requests found
*
!requirements.txt
!uc-workload-generator
!uc-application
!strategies
!lib
!theodolite.py
!run_uc.py
!lag_analysis.py
FROM python:3.8
RUN mkdir /app
WORKDIR /app
ADD requirements.txt /app/
RUN pip install -r requirements.txt
COPY uc-workload-generator /app/uc-workload-generator
COPY uc-application /app/uc-application
COPY strategies /app/strategies
COPY lib /app/lib
COPY lag_analysis.py /app/
COPY run_uc.py /app/
COPY theodolite.py /app/
CMD ["python", "/app/theodolite.py"]
apiVersion: batch/v1
kind: Job
metadata:
name: theodolite
spec:
template:
spec:
containers:
- name: theodolite
image: theodolite:latest
imagePullPolicy: Never
env:
- name: UC
value: "1"
- name: LOADS
value: "13206, 19635"
- name: INSTANCES
value: "1, 2"
- name: DURATION
value: "3"
- name: PARTITIONS
value: "30"
# - name: COMMIT_MS
# value: ""
# - name: SEARCH_STRATEGY
# value: ""
# - name: CPU_LIMIT
# value: ""
# - name: MEMORY_LIMIT
# value: ""
- name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090"
- name: PYTHONUNBUFFERED
value: "1"
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment