Skip to content

Commit

Permalink
🚧 update kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePELAMOURGUES committed Nov 25, 2024
1 parent 9ef10f4 commit efd6724
Show file tree
Hide file tree
Showing 24 changed files with 864 additions and 396 deletions.
50 changes: 50 additions & 0 deletions kubernetes/configmaps/configmaps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# ConfigMap pour les services MLflow et API
apiVersion: v1
kind: ConfigMap
metadata:
name: posgres-mlfow-config
namespace: reco-movies
data:
POSTGRES_DB: "mlflow"
POSTGRES_USER: "mlflow"
MLFLOW_S3_ENDPOINT_URL: "http://s3-artifact-storage:9000"
MLFLOW_TRACKING_URI: "http://mlflow-service:5000"

---
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-api-config
namespace: reco-movies
data:
POSTGRES_DB: "reco_movies"
POSTGRES_USER: "antoine"

---
# ConfigMap pour Prometheus (Configuration)
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
namespace: reco-movies
data:
prometheus.yml: |
global:
scrape_interval: '15s'
scrape_configs:
- job_name: 'fastapi'
static_configs:
- targets: ['fastapi-service:8000']
---
# Configmap pour fastapi
apiVersion: v1
kind: ConfigMap
metadata:
name: fastapi-config
namespace: reco-movies
data:
MODEL_PATH: "/app/model/model.pkl"
DATA_PATH: "/app/raw/movies.csv"
HOST: "0.0.0.0"
PORT: "8000"
Loading

0 comments on commit efd6724

Please sign in to comment.