2023-12-11 22:46:18 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: mlflow
|
|
|
|
namespace: mlflow
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: mlflow
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: mlflow
|
|
|
|
spec:
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: gitea-regcred
|
|
|
|
initContainers:
|
|
|
|
- name: init-s3-bucket
|
2024-06-07 07:58:39 +00:00
|
|
|
image: minio/mc:latest@sha256:4c43b8f007557145205a1d751e1d7f24a36994125b3e4f38e83d7c61f3a3872c
|
2023-12-11 22:46:18 +00:00
|
|
|
command: ["/bin/sh", "-c"]
|
|
|
|
args:
|
|
|
|
- until mc alias set mlflow-minio http://minio-svc.mlflow.svc.cluster.local:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD; do sleep 5; done;
|
|
|
|
mc admin user add mlflow-minio $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY;
|
|
|
|
mc admin policy attach mlflow-minio readwrite --user $AWS_ACCESS_KEY_ID;
|
|
|
|
mc mb mlflow-minio/mlflow;
|
|
|
|
exit 0;
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: minio-admin-secret
|
|
|
|
- secretRef:
|
|
|
|
name: minio-user-secret
|
2024-04-03 19:33:20 +00:00
|
|
|
- name: init-db-upgrade
|
2024-06-03 13:11:41 +00:00
|
|
|
image: git.namesny.com/cluster/mlflow:latest@sha256:9d935268bc318d6cadbfe8d480744ce898cdfb906be5ba7125ab87c555894798
|
2024-04-03 19:33:20 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: mlflow-secret
|
|
|
|
command: ["/bin/sh", "-c"]
|
|
|
|
args:
|
|
|
|
- mlflow db upgrade $MLFLOW_BACKEND_STORE_URI;
|
|
|
|
exit 0;
|
2023-12-11 22:46:18 +00:00
|
|
|
containers:
|
|
|
|
- name: mlflow
|
2024-06-03 13:11:41 +00:00
|
|
|
image: git.namesny.com/cluster/mlflow:latest@sha256:9d935268bc318d6cadbfe8d480744ce898cdfb906be5ba7125ab87c555894798
|
2023-12-11 22:46:18 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
args:
|
|
|
|
- --host=0.0.0.0
|
|
|
|
- --port=5000
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: mlflow-secret
|
|
|
|
- secretRef:
|
|
|
|
name: minio-user-secret
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 5000
|
|
|
|
protocol: TCP
|