-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmavis.yaml
More file actions
44 lines (44 loc) · 971 Bytes
/
mavis.yaml
File metadata and controls
44 lines (44 loc) · 971 Bytes
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
apiVersion: v1
kind: Pod
metadata:
name: mavis
annotations:
k8s.v1.cni.cncf.io/networks: mainnet-vlan
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
containers:
- name: mavis
image: registry.cjbal.com/mavis
resources:
limits:
nvidia.com/gpu: 2
command: [/bin/sh, -c, "cargo run --bin mavis --features cudnn"]
volumeMounts:
- name: models
mountPath: /ceph-fuse/public/neural_models/
- name: data
mountPath: /ceph-fuse/public/k8s/mavis/data
volumes:
- name: models
hostPath:
path: /ceph-fuse/public/neural_models/
- name: data
hostPath:
path: /ceph-fuse/public/k8s/mavis/data
---
apiVersion: v1
kind: Service
metadata:
name: mavis
spec:
selector:
app.kubernetes.io/name: mavis
ports:
- protocol: TCP
port: 22
targetPort: 22
externalIPs:
- fdb7:1860:52b3:2601::370