forked from totallylegitco/fighthealthinsurance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster.yaml
103 lines (103 loc) · 2.81 KB
/
cluster.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
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: ray.io/v1
kind: RayCluster
metadata:
generation: 2
labels:
app.kubernetes.io/instance: raycluster
name: raycluster-kuberay
namespace: totallylegitco
spec:
headGroupSpec:
rayStartParams:
dashboard-host: 0.0.0.0
serviceType: ClusterIP
template:
metadata:
annotations: {}
labels:
spec:
affinity: {}
containers:
- image: holdenk/fhi-ray:v0.9.4c
env:
- name: RAY_gcs_server_request_timeout_seconds
value: "20"
envFrom:
- secretRef:
name: fight-health-insurance-secret
imagePullPolicy: IfNotPresent
name: ray-head
resources:
limits:
cpu: "1"
memory: 13G
requests:
cpu: "1"
memory: 12G
volumeMounts:
- mountPath: /tmp/ray
name: log-volume
- name: uploads
mountPath: /external_data
- name: ssh-privatekey
readOnly: true
# container will see /root/.ssh/id_rsa as usual:
mountPath: "/home/ray/.ssh"
volumes:
- emptyDir: {}
name: log-volume
- name: uploads
persistentVolumeClaim:
claimName: uploads
- name: ssh-privatekey
secret:
secretName: ssh-privatekey
defaultMode: 0755
workerGroupSpecs:
- groupName: workergroup
maxReplicas: 4
minReplicas: 1
rayStartParams: {}
replicas: 1
template:
metadata:
annotations: {}
labels:
app.kubernetes.io/instance: raycluster
spec:
containers:
- image: holdenk/fhi-ray:v0.9.4c
env:
- name: RAY_gcs_server_request_timeout_seconds
value: "20"
envFrom:
- secretRef:
name: fight-health-insurance-secret
imagePullPolicy: IfNotPresent
name: ray-worker
resources:
limits:
cpu: "1"
memory: 13G
requests:
cpu: "1"
memory: 12G
volumeMounts:
- mountPath: /tmp/ray
name: log-volume
- name: uploads
mountPath: /external_data
- name: ssh-privatekey
readOnly: true
# container will see /root/.ssh/id_rsa as usual:
mountPath: "/home/ray/.ssh"
volumes:
- emptyDir: {}
name: log-volume
- name: uploads
persistentVolumeClaim:
claimName: uploads
- name: ssh-privatekey
secret:
secretName: ssh-privatekey
defaultMode: 0755