Skip to content

Commit

Permalink
add partial charts
Browse files Browse the repository at this point in the history
  • Loading branch information
fonhorst committed Nov 26, 2023
1 parent 05b66f5 commit 7632d5e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 26 deletions.
2 changes: 1 addition & 1 deletion distributed/charts/autotm/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ metadata:
name: fitness-worker-config
data:
datasets-config.yaml: |
{{ datasets_config_content | indent( width=4, first=False) }}
{{ .Values.datasets_config_content }}
41 changes: 22 additions & 19 deletions distributed/charts/autotm/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
name: rabbitmq-config
containers:
- name: rabbitmq
image: node2.bdcl:5000/rabbitmq:3.8-management-alpine
imagePullPolicy: IfNotPresent
image: {{ .Values.rabbitmq_image }}
imagePullPolicy: {{ .Values.pull_policy }}
ports:
- containerPort: 5672
volumeMounts:
Expand All @@ -48,8 +48,8 @@ spec:
spec:
containers:
- name: redis
image: node2.bdcl:5000/redis:6.2
imagePullPolicy: IfNotPresent
image: {{ .Values.redis_image }}
imagePullPolicy: {{ .Values.pull_policy }}
resources:
requests:
cpu: 100m
Expand All @@ -75,8 +75,8 @@ spec:
spec:
containers:
- name: flower
image: {{ flower_image }}
imagePullPolicy: {{ pull_policy }}
image: {{ .Values.flower_image }}
imagePullPolicy: {{ .Values.pull_policy }}
ports:
- containerPort: 5555
env:
Expand All @@ -92,7 +92,7 @@ metadata:
labels:
app: fitness-worker
spec:
replicas: {{ worker_count }}
replicas: {{ .Values.worker_count }}
selector:
matchLabels:
app: fitness-worker
Expand All @@ -104,10 +104,13 @@ spec:
app: fitness-worker
spec:
volumes:
# - name: dataset
# hostPath:
# path: {{ host_data_dir }}
# type: Directory
- name: dataset
hostPath:
path: {{ host_data_dir }}
type: Directory
persistentVolumeClaim:
claimName: autotm-datasets
- name: config-volume
configMap:
name: fitness-worker-config
Expand All @@ -116,11 +119,11 @@ spec:
claimName: mlflow-artifact-store-pvc
containers:
- name: worker
image: {{ image }}
imagePullPolicy: {{ pull_policy }}
image: {{ .Values.worker_image }}
imagePullPolicy: {{ .Values.pull_policy }}
volumeMounts:
- name: dataset
mountPath: {{ host_data_dir_mount_path }}
mountPath: {{ .Values.worker_datasets_dir_path }}
- name: config-volume
mountPath: /etc/fitness/datasets-config.yaml
subPath: datasets-config.yaml
Expand All @@ -132,7 +135,7 @@ spec:
- name: CELERY_RESULT_BACKEND
value: "redis://redis:6379/1" # "rpc://"
- name: NUM_PROCESSORS
value: "{{ worker_cpu }}"
value: {{ .Values.worker_cpu }}
- name: DATASETS_CONFIG
value: /etc/fitness/datasets-config.yaml
- name: MLFLOW_TRACKING_URI
Expand All @@ -141,11 +144,11 @@ spec:
- name: MONGO_URI
value: mongodb://mongoadmin:secret@mongo-tm-experiments-db:27017
- name: MONGO_COLLECTION
value: "{{ mongo_collection or 'tm_stats' }}"
value: {{ .Values.worker_mongo_collection }}
resources:
requests:
memory: "{{ worker_mem }}"
cpu: "{{ worker_cpu }}"
memory: {{ .Values.worker_mem }}
cpu: {{ .Values.worker_cpu }}
limits:
memory: "{{ worker_mem }}"
cpu: "{{ worker_cpu }}"
memory: {{ .Values.worker_mem }}
cpu: {{ .Values.worker_cpu }}
23 changes: 17 additions & 6 deletions distributed/charts/autotm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
ns_cpu_limit: '16'
ns_mem_limit: '64Gi'
# General section
pull_policy: "Always"

jupyter_cpu_limits: '2'
jupyter_mem_limits: '8Gi'
# Rabbitmq section
rabbitmq_image: "node2:bdcl:5000/rabbitmq:3:8-management-alpine"

# On install one also need to set
# user: 'tutor'
# Redis section
redis_image: "node2.bdcl:5000/redis:6.2"

# Flower section
flower_image: ""

# Fitness worker section
worker_image: ""
worker_datasets_dir_path: "/storage"
worker_count: 1
worker_cpu: 1
worker_mem: "8Gi"
worker_mongo_collection: "tm_stats"

0 comments on commit 7632d5e

Please sign in to comment.