-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmlflow-ui-deployment.yaml
executable file
·91 lines (91 loc) · 1.81 KB
/
mlflow-ui-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: apps/v1
kind: Deployment
metadata:
name: mlflow-ui
namespace: default
labels:
app: mlflow
component: ui
spec:
replicas: 1
selector:
matchLabels:
app: mlflow
component: ui
template:
metadata:
name: mlflow-ui
labels:
app: mlflow
component: ui
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:
- name: mlflow-server
image: sachua/mlflow-server:latest
imagePullPolicy: IfNotPresent
command: ["/bin/sh"]
args: ["-c","mlflow server --backend-store-uri mysql+pymysql://mlflow_user:[email protected]:3306/mlflow_database --default-artifact-root s3://mlflow/ --host 0.0.0.0"]
env:
- name: MLFLOW_S3_ENDPOINT_URL
value: 'http://minio.default:9000'
- name: AWS_ACCESS_KEY_ID
value: 'minio'
- name: AWS_SECRET_ACCESS_KEY
value: 'minio123'
ports:
- containerPort: 5000
name: ui
serviceAccountName: mlflow-ui
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: mlflow-ui
namespace: default
rules:
- apiGroups:
- ""
resources:
- configmaps
- namespaces
verbs:
- "*"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: mlflow-ui
namespace: default
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: mlflow-ui
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mlflow-ui
subjects:
- kind: ServiceAccount
name: mlflow-ui
namespace: default
---
apiVersion: v1
kind: Service
metadata:
name: mlflow-ui
labels:
app: mlflow
component: ui
spec:
type: LoadBalancer
ports:
- port: 80
protocol: TCP
name: ui
targetPort: 5000
selector:
app: mlflow
component: ui