-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecdf7bb
commit dbabe6b
Showing
7 changed files
with
120 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# name: Build, Push, and Deploy to GKE | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
|
||
# env: | ||
# PROJECT_ID: ${{ secrets.GKE_PROJECT }} | ||
# GKE_CLUSTER: sfmlops-cluster # cluster name | ||
# GKE_ZONE: asia-southeast1-a # cluster zone | ||
# IMAGE_TAG: ${{ github.sha }} # use commit sha as a image tag | ||
# GAR_ZONE: asia-southeast1 # artifact registry zone | ||
# GAR_REPO: sfmlops-registry # artifact registry repository | ||
|
||
# jobs: | ||
# build_and_push_images: | ||
# name: Setup, Build, Publish, and Deploy to GCP | ||
# runs-on: ubuntu-latest | ||
# environment: production | ||
# strategy: | ||
# matrix: | ||
# image: [ | ||
# { name: web-ui, context: ./services/web-ui, file: ./services/web-ui/Dockerfile, buildargs: "" }, | ||
# { name: training-service, context: ./services/training-service, file: ./services/training-service/Dockerfile, buildargs: "" }, | ||
# { name: data-producer, context: ./services/data-producer, file: ./services/data-producer/Dockerfile, buildargs: "" }, | ||
# { name: mlflow, context: ./services/mlflow, file: ./services/mlflow/Dockerfile, buildargs: "" }, | ||
# { name: airflow-spark, context: ./services/airflow, file: ./services/airflow/Dockerfile, buildargs: "--build-arg AIRFLOW_HOME=/opt/airflow" }, | ||
# { name: ray, context: ./services/ray, file: ./services/ray/Dockerfile, buildargs: "--build-arg MLFLOW_ARTIFACT_ROOT=/storage/mlruns --build-arg ARCH_TRAILING_IMG_NAME=-aarch64" }, | ||
# { name: forecast-service, context: ./services/forecast-service, file: ./services/forecast-service/Dockerfile, buildargs: "" } | ||
# ] | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# # setup gcloud cli | ||
# - name: Authenticate | ||
# id: auth | ||
# uses: google-github-actions/auth@v2 | ||
# with: | ||
# credentials_json: ${{ secrets.GKE_SA_KEY }} | ||
|
||
# # config docker to use gcloud cli tool as a credential | ||
# # helper for authentication | ||
# - name: Docker config | ||
# run: |- | ||
# gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://$GAR_ZONE-docker.pkg.dev | ||
|
||
# # Get GKE credentials | ||
# - name: Setup GKE credentials | ||
# uses: google-github-actions/get-gke-credentials@v2 | ||
# with: | ||
# cluster_name: ${{ env.GKE_CLUSTER }} | ||
# location: ${{ env.GKE_ZONE }} | ||
|
||
# - name: Build and push ${{ matrix.image.name }} Docker image | ||
# run: |- | ||
# docker build ${{ matrix.image.buildargs }} \ | ||
# --tag "$GAR_ZONE-docker.pkg.dev/$PROJECT_ID/$GAR_REPO/${{ matrix.image.name }}:${{ github.sha }}" \ | ||
# --tag "$GAR_ZONE-docker.pkg.dev/$PROJECT_ID/$GAR_REPO/${{ matrix.image.name }}:latest" \ | ||
# -f ${{ matrix.image.file }} ${{ matrix.image.context }} | ||
# docker push "$GAR_ZONE-docker.pkg.dev/$PROJECT_ID/$GAR_REPO/${{ matrix.image.name }}:${{ github.sha }}" | ||
# docker push "$GAR_ZONE-docker.pkg.dev/$PROJECT_ID/$GAR_REPO/${{ matrix.image.name }}:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! /bin/bash | ||
|
||
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \ | ||
chmod 700 get_helm.sh && \ | ||
./get_helm.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prometheus: | ||
service: | ||
type: LoadBalancer | ||
|
||
## Grafana default port is 80 which can conflict with our main nginx | ||
## if we are running locally, so just leave it as default | ||
grafana: | ||
adminPassword: admin | ||
# service: | ||
# type: LoadBalancer |