|
1 | | -apiVersion: v1 |
2 | | -kind: ConfigMap |
3 | | -metadata: |
4 | | - name: kube-rbac-proxy |
5 | | -data: |
6 | | - config-file.yaml: | |
7 | | - authorization: |
8 | | - resourceAttributes: |
9 | | - namespace: default |
10 | | - apiVersion: v1 |
11 | | - apiGroup: ray.io |
12 | | - resource: rayclusters |
13 | | - name: ray-cluster-with-auth |
14 | | ---- |
15 | | -apiVersion: v1 |
16 | | -kind: ServiceAccount |
17 | | -metadata: |
18 | | - name: kube-rbac-proxy |
19 | | ---- |
20 | | -apiVersion: rbac.authorization.k8s.io/v1 |
21 | | -kind: ClusterRoleBinding |
22 | | -metadata: |
23 | | - name: kube-rbac-proxy |
24 | | -roleRef: |
25 | | - apiGroup: rbac.authorization.k8s.io |
26 | | - kind: ClusterRole |
27 | | - name: kube-rbac-proxy |
28 | | -subjects: |
29 | | -- kind: ServiceAccount |
30 | | - name: kube-rbac-proxy |
31 | | - namespace: default |
32 | | ---- |
33 | | -apiVersion: rbac.authorization.k8s.io/v1 |
34 | | -kind: ClusterRole |
35 | | -metadata: |
36 | | - name: kube-rbac-proxy |
37 | | -rules: |
38 | | -- apiGroups: ["authentication.k8s.io"] |
39 | | - resources: |
40 | | - - tokenreviews |
41 | | - verbs: ["create"] |
42 | | -- apiGroups: ["authorization.k8s.io"] |
43 | | - resources: |
44 | | - - subjectaccessreviews |
45 | | - verbs: ["create"] |
46 | | ---- |
47 | 1 | apiVersion: ray.io/v1 |
48 | 2 | kind: RayCluster |
49 | 3 | metadata: |
50 | 4 | name: ray-cluster-with-auth |
51 | 5 | spec: |
| 6 | + enableInTreeAutoscaling: true |
| 7 | + authOptions: |
| 8 | + mode: token |
| 9 | + rayVersion: '2.52.0' |
52 | 10 | headGroupSpec: |
53 | | - rayStartParams: |
54 | | - dashboard-host: '127.0.0.1' |
55 | | - dashboard-port: '8443' |
| 11 | + rayStartParams: {} |
56 | 12 | template: |
57 | | - metadata: |
58 | 13 | spec: |
59 | | - serviceAccountName: kube-rbac-proxy |
60 | 14 | containers: |
61 | 15 | - name: ray-head |
62 | | - image: rayproject/ray:2.46.0 |
| 16 | + image: rayproject/ray:nightly-py311-cpu |
| 17 | + resources: |
| 18 | + limits: |
| 19 | + memory: 8G |
| 20 | + requests: |
| 21 | + cpu: 4 |
| 22 | + memory: 8G |
63 | 23 | ports: |
64 | 24 | - containerPort: 6379 |
65 | | - name: gcs |
| 25 | + name: gcs-server |
66 | 26 | - containerPort: 8265 |
67 | 27 | name: dashboard |
68 | 28 | - containerPort: 10001 |
69 | 29 | name: client |
70 | | - resources: |
71 | | - limits: |
72 | | - cpu: "2" |
73 | | - memory: "4Gi" |
74 | | - requests: |
75 | | - cpu: "2" |
76 | | - memory: "4Gi" |
77 | | - readinessProbe: |
78 | | - exec: |
79 | | - command: |
80 | | - - bash |
81 | | - - -c |
82 | | - - wget -T 2 -q -O- http://localhost:52365/api/local_raylet_healthz | grep success && wget -T 10 -q -O- http://localhost:8443/api/gcs_healthz | grep success |
83 | | - failureThreshold: 10 |
84 | | - initialDelaySeconds: 10 |
85 | | - periodSeconds: 5 |
86 | | - successThreshold: 1 |
87 | | - timeoutSeconds: 2 |
88 | | - livenessProbe: |
89 | | - exec: |
90 | | - command: |
91 | | - - bash |
92 | | - - -c |
93 | | - - wget -T 2 -q -O- http://localhost:52365/api/local_raylet_healthz | grep success && wget -T 10 -q -O- http://localhost:8443/api/gcs_healthz | grep success |
94 | | - failureThreshold: 120 |
95 | | - initialDelaySeconds: 30 |
96 | | - periodSeconds: 5 |
97 | | - successThreshold: 1 |
98 | | - timeoutSeconds: 2 |
99 | | - - name: kube-rbac-proxy |
100 | | - image: quay.io/brancz/kube-rbac-proxy:v0.18.1 |
101 | | - args: |
102 | | - - "--insecure-listen-address=0.0.0.0:8265" |
103 | | - - "--upstream=http://127.0.0.1:8443/" |
104 | | - - "--config-file=/etc/kube-rbac-proxy/config-file.yaml" |
105 | | - - "--logtostderr=true" |
106 | | - volumeMounts: |
107 | | - - name: config |
108 | | - mountPath: /etc/kube-rbac-proxy |
109 | | - volumes: |
110 | | - - name: config |
111 | | - configMap: |
112 | | - name: kube-rbac-proxy |
113 | 30 | workerGroupSpecs: |
114 | | - - replicas: 2 |
| 31 | + - replicas: 1 |
115 | 32 | minReplicas: 1 |
116 | 33 | maxReplicas: 5 |
117 | | - groupName: worker-group |
| 34 | + groupName: workergroup |
118 | 35 | rayStartParams: {} |
119 | 36 | template: |
120 | 37 | spec: |
121 | 38 | containers: |
122 | 39 | - name: ray-worker |
123 | | - image: rayproject/ray:2.46.0 |
| 40 | + image: rayproject/ray:nightly-py311-cpu |
124 | 41 | resources: |
125 | 42 | limits: |
126 | | - cpu: 1 |
127 | | - memory: "4Gi" |
| 43 | + memory: 8G |
128 | 44 | requests: |
129 | | - cpu: 1 |
130 | | - memory: "4Gi" |
| 45 | + cpu: 4 |
| 46 | + memory: 8G |
0 commit comments