Skip to content

Commit

Permalink
Helm templating all base images
Browse files Browse the repository at this point in the history
  • Loading branch information
jomariya23156 committed Apr 1, 2024
1 parent ca1931d commit ff25772
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_push_docker_hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
# to put this into matrix
build-args: |
AIRFLOW_HOME=/opt/airflow
MLFLOW_ARTIFACT_ROOT=/storage/mlruns
build_and_push_ray_arm64: # Job for building and pushing the images
name: Build and Push Ray arm64 Image
Expand Down Expand Up @@ -108,10 +107,11 @@ jobs:
## for amd64 (x86_64) please leave ARCH_TRAILING_IMG_NAME empty like
## ARCH_TRAILING_IMG_NAME=
build-args: |
MLFLOW_ARTIFACT_ROOT=/storage/mlruns
ARCH_TRAILING_IMG_NAME=-aarch64
build_and_push_ray_amd64: # Job for building and pushing the images
name: Build and Push Ray arm64 Image
name: Build and Push Ray amd64 Image
runs-on: ubuntu-latest
needs: shared_steps # Dependency on the shared steps
steps:
Expand Down Expand Up @@ -147,4 +147,5 @@ jobs:
# Hardcoded all build-args here, couldn't find a proper way
# to put this into matrix
build-args: |
MLFLOW_ARTIFACT_ROOT=/storage/mlruns
ARCH_TRAILING_IMG_NAME=
2 changes: 1 addition & 1 deletion sfmlops-helm/templates/data-producer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: data-producer
image: ariya23156/sfmlops-data-producer
image: {{ .Values.containerMainImage.dataProducer }}
imagePullPolicy: Always
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
claimName: {{ .Values.mlflowPvcName }}
containers:
- name: forecast-service
image: ariya23156/sfmlops-forecast-service
image: {{ .Values.containerMainImage.forecastService }}
imagePullPolicy: Always
ports:
- containerPort: {{ .Values.forecastServicePort }}
Expand Down
2 changes: 1 addition & 1 deletion sfmlops-helm/templates/mlflow-deployment-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
claimName: {{ .Values.mlflowPvcName }}
containers:
- name: mlflow
image: ariya23156/sfmlops-mlflow
image: {{ .Values.containerMainImage.mlflow }}
ports:
- containerPort: {{ .Values.mlflowPort }}
volumeMounts:
Expand Down
4 changes: 2 additions & 2 deletions sfmlops-helm/templates/ray-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
spec:
containers:
- name: ray-head
image: ariya23156/sfmlops-ray
image: {{ .Values.containerMainImage.ray }}
imagePullPolicy: Always
ports:
- containerPort: 6379
Expand Down Expand Up @@ -109,7 +109,7 @@ spec:
spec:
containers:
- name: ray-worker
image: ariya23156/sfmlops-ray
image: {{ .Values.containerMainImage.ray }}
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: training-service
image: ariya23156/sfmlops-training-service
image: {{ .Values.containerMainImage.trainingService }}
imagePullPolicy: Always
ports:
- containerPort: {{ .Values.trainingServicePort }}
Expand Down
2 changes: 1 addition & 1 deletion sfmlops-helm/templates/web-ui-deployment-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: web-ui
image: ariya23156/sfmlops-web-ui
image: {{ .Values.containerMainImage.webUi }}
imagePullPolicy: Always
ports:
- containerPort: {{ .Values.webUiPort }}
Expand Down
15 changes: 7 additions & 8 deletions sfmlops-helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
containerBaseImage:
dataProducer:
trainingService:
forecastService:
mlflow:
ray:
webUi:

containerMainImage:
dataProducer: ariya23156/sfmlops-data-producer
trainingService: ariya23156/sfmlops-training-service
forecastService: ariya23156/sfmlops-forecast-service
mlflow: ariya23156/sfmlops-mlflow
ray: ariya23156/sfmlops-ray:latest-amd64
webUi: ariya23156/sfmlops-web-ui

kafkaReleaseName: kafka-release
kafkaNamespace: kafka
Expand Down

0 comments on commit ff25772

Please sign in to comment.