-
Notifications
You must be signed in to change notification settings - Fork 2
/
glue-operator.yaml
49 lines (49 loc) · 1.12 KB
/
glue-operator.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
operator_role:
apiVersion: v1
kind: ServiceAccount
metadata:
name: ray-operator-serviceaccount
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ray-operator-role
rules:
- apiGroups: ["", "cluster.ray.io"]
resources: ["rayclusters", "rayclusters/finalizers", "rayclusters/status", "pods", "pods/exec", "services"]
verbs: ["get", "watch", "list", "create", "delete", "patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: ray-operator-rolebinding
subjects:
- kind: ServiceAccount
name: ray-operator-serviceaccount
roleRef:
kind: Role
name: ray-operator-role
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: Pod
metadata:
name: glue-operator-pod
spec:
serviceAccountName: ray-operator-serviceaccount
containers:
- name: ray
imagePullPolicy: Always
image: rayproject/ray:1.12.0-py37
command: ["ray-operator"]
env:
- name: RAY_OPERATOR_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
cpu: 1
memory: 1Gi
limits:
memory: 2Gi