-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhub-ml.yaml
69 lines (69 loc) · 2.24 KB
/
hub-ml.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: kerberoshub-ml
labels:
app: kerberoshub-ml
spec:
replicas: 3
selector:
matchLabels:
app: kerberoshub-ml
template:
metadata:
labels:
app: kerberoshub-ml
spec:
imagePullSecrets:
- name: regcred
containers:
- name: kerberoshub-ml
image: kerberos/hub-ml:nvidia-1.0.872584660 # or CPU -> kerberos/hub-ml:amd64
resources:
limits:
nvidia.com/gpu: 1 # requesting a single GPU
env:
- name: QUEUE_SYSTEM
value: "KAFKA" # or "RABBITMQ"
- name: QUEUE_NAME
value: "kcloud-classify-queue.fifo" # This is the topic of kafka we will read messages from.
- name: QUEUE_TARGET
value: "kcloud-analysis-queue" # Once we processed the recording with ML, we will send results/metadata to a target topic of Kafka.
- name: KAFKA_BROKER
value: "kafka1.kerberos.xxx:9094,kafka2.kerberos.xxx:9094"
- name: KAFKA_GROUP
value: "mygroup"
- name: KAFKA_USERNAME
value: "xxx"
- name: KAFKA_PASSWORD
value: "xxx"
- name: KAFKA_MECHANISM
value: "PLAIN"
- name: KAFKA_SECURITY
value: "SASL_PLAINTEXT"
- name: RABBITMQ_HOST
value: "yourip.xxx:5672"
- name: RABBITMQ_EXCHANGE
value: ""
- name: RABBITMQ_USERNAME
value: "yourusername"
- name: RABBITMQ_PASSWORD
value: "yourpassword"
- name: VAULT_API_URL
value: "https://xxx.api.vault.kerberos.live"
- name: VAULT_ACCESS_KEY
value: "xxx"
- name: VAULT_SECRET_KEY
value: "xxx"
- name: FORWARDING_MEDIA
value: "false"
- name: FORWARDING_METADATA
value: "false"
- name: FORWARDING_OBJECT_THRESHOLD
value: "10"
- name: REMOVE_AFTER_PROCESSED
value: "false"
- name: NUMBER_OF_PREDICTIONS
value: "10"
- name: MOVE_DISTANCE
value: "100"