-
Notifications
You must be signed in to change notification settings - Fork 7
/
head.yml
41 lines (41 loc) · 833 Bytes
/
head.yml
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
---
apiVersion: v1
kind: Service
metadata:
name: ray-head
spec:
type: "LoadBalancer"
ports:
- name: redis
port: 6379
targetPort: 6379
- name: plasma
port: 12345
targetPort: 12345
selector:
app: ray-head
---
apiVersion: v1
kind: Pod
metadata:
name: ray-head
labels:
app: ray-head
spec:
containers:
- name: ray-head
image: gcr.io/tutorial-218804/kube-cluster-demo
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 6379
- containerPort: 12345
command: [ "/bin/bash", "-c", "--" ]
args:
- "ray start --head --redis-port 6379 --object-manager-port 12345 --node-ip-address $MY_POD_IP &&
echo id_rsa.pub is -;
more ~/.ssh/id_rsa.pub
&& while true; do sleep 30; done;"