Skip to content

Commit

Permalink
Added forecast-service to CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
jomariya23156 committed Mar 31, 2024
1 parent ff79188 commit 5a9b2b1
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_push_docker_hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
{ name: data-producer, context: ./services/data-producer, file: ./services/data-producer/Dockerfile },
{ name: mlflow, context: ./services/mlflow, file: ./services/mlflow/Dockerfile },
{ name: airflow-spark, context: ./services/airflow, file: ./services/airflow/Dockerfile },
{ name: ray, context: ./services/ray, file: ./services/ray/Dockerfile }
{ name: ray, context: ./services/ray, file: ./services/ray/Dockerfile },
{ name: forecast-service, context: ./services/forecast-service, file: ./services/forecast-service/Dockerfile }
]
steps:
- name: Download repository artifact
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ From doc: https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-com

## How to run Kubernetes/Helm
1. `cd sfmlops-helm` and `helm dependency build` to fetch all dependencies
2. Both install and upgrade the main chart: `helm upgrade --install --create-namespace -n mlops sfmlops-helm ./ -f values.yaml`
2. Both install and upgrade the main chart: `helm upgrade --install --create-namespace -n mlops sfmlops-helm ./ -f values.yaml -f values-ray.yaml`
3. Deploy Kafka: `helm -n kafka upgrade --install kafka-release oci://registry-1.docker.io/bitnamicharts/kafka --create-namespace --version 23.0.7 -f values-kafka.yaml`
4. Deploy Airflow:
1. `helm repo add apache-airflow https://airflow.apache.org`
Expand Down
12 changes: 12 additions & 0 deletions sfmlops-helm/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies:
- name: ingress-nginx
repository: https://kubernetes.github.io/ingress-nginx
version: 4.10.0
- name: kuberay-operator
repository: https://ray-project.github.io/kuberay-helm/
version: 1.1.0-rc.0
- name: ray-cluster
repository: https://ray-project.github.io/kuberay-helm/
version: 1.1.0-rc.0
digest: sha256:8be42ea3b59b9b55ccd9d8ed173a5072eae637e988900dac1cdb28ef126f3724
generated: "2024-03-31T14:18:24.709723+07:00"
6 changes: 6 additions & 0 deletions sfmlops-helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ dependencies:
- name: ingress-nginx
version: 4.10.0 # Specify the version you want
repository: https://kubernetes.github.io/ingress-nginx
- name: kuberay-operator
version: 1.1.0-rc.0
repository: https://ray-project.github.io/kuberay-helm/
- name: ray-cluster
version: 1.1.0-rc.0
repository: https://ray-project.github.io/kuberay-helm/
# - name: kafka
# version: 23.0.7
# repository: oci://registry-1.docker.io/bitnamicharts
Binary file not shown.
Binary file added sfmlops-helm/charts/ray-cluster-1.1.0-rc.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: forecast-service
image: ariya23156/sfmlops-training-service
image: ariya23156/sfmlops-forecast-service
ports:
- containerPort: {{ .Values.forecastServicePort }}
envFrom:
Expand Down
3 changes: 0 additions & 3 deletions sfmlops-helm/templates/ray-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ spec:
envFrom:
- configMapRef:
name: global-configmap
containerEnv:
- name: MLFLOW_TRACKING_URI
value: "http://mlflow-service:{{ .Values.mlflowPort }}"
volumeMounts:
- mountPath: /tmp/ray
name: ray-logs
Expand Down
12 changes: 12 additions & 0 deletions sfmlops-helm/values-ray.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
image:
tag: 2.9.3-py39-cpu-aarch64

head:
containerEnv:
- name: MLFLOW_TRACKING_URI
value: "http://mlflow-service:5050"

worker:
containerEnv:
- name: MLFLOW_TRACKING_URI
value: "http://mlflow-service:5050"

0 comments on commit 5a9b2b1

Please sign in to comment.