-
Notifications
You must be signed in to change notification settings - Fork 822
[Feature] [history server] Support token auth in the history server collector #5078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 5 commits
5e8ff25
dd4bc4b
5926232
34c11ba
4e22807
11d57ae
6baf3e6
3725470
2d6add6
aa57c32
b164f05
4c0191f
4af2e32
cee1e00
1539672
96c8b86
701aad2
10112f4
23f7c34
c5a9d0e
083e8c4
36269c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,12 @@ metadata: | |||||||||
| name: raycluster-historyserver | ||||||||||
| namespace: default | ||||||||||
| spec: | ||||||||||
| # Uncomment to make the Dashboard reject unauthenticated requests, which the collector | ||||||||||
| # sidecars below must survive (ray-project/kuberay#5056). The operator rejects | ||||||||||
| # `authOptions.mode: token` unless `rayVersion` is set and is at least 2.52.0. | ||||||||||
| # rayVersion: "2.52.0" | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Follow the ray image that we use. |
||||||||||
| # authOptions: | ||||||||||
| # mode: token | ||||||||||
| headGroupSpec: | ||||||||||
| rayStartParams: | ||||||||||
| dashboard-host: 0.0.0.0 | ||||||||||
|
|
@@ -65,6 +71,17 @@ spec: | |||||||||
| value: "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite-service.azurite-dev.svc.cluster.local:10000/devstoreaccount1;" | ||||||||||
| - name: AZURE_STORAGE_CONTAINER | ||||||||||
| value: ray-historyserver | ||||||||||
| # Ray token auth (optional): uncomment when the RayCluster sets | ||||||||||
| # `spec.authOptions.mode: token` (which also requires `spec.rayVersion`, unset here). | ||||||||||
| # Without the token the collector gets 401 from the Dashboard during NodeID discovery. | ||||||||||
|
win5923 marked this conversation as resolved.
Outdated
|
||||||||||
| # - name: RAY_AUTH_TOKEN | ||||||||||
| # valueFrom: | ||||||||||
| # secretKeyRef: | ||||||||||
| # name: raycluster-historyserver # defaults to the RayCluster name | ||||||||||
| # key: auth_token | ||||||||||
| # For `spec.authOptions.enableK8sTokenAuth` (Ray 2.55.0+) set | ||||||||||
| # RAY_ENABLE_K8S_TOKEN_AUTH="true" instead, plus a projected ServiceAccount token | ||||||||||
| # volume at /var/run/secrets/ray.io/serviceaccount. | ||||||||||
|
win5923 marked this conversation as resolved.
Outdated
|
||||||||||
| command: [collector, --role=Head, --runtime-class-name=azureblob, --ray-cluster-name=raycluster-historyserver, --ray-root-dir=log, --events-port=8084] | ||||||||||
| volumeMounts: | ||||||||||
| - name: historyserver | ||||||||||
|
|
@@ -136,6 +153,13 @@ spec: | |||||||||
| value: "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite-service.azurite-dev.svc.cluster.local:10000/devstoreaccount1;" | ||||||||||
| - name: AZURE_STORAGE_CONTAINER | ||||||||||
| value: ray-historyserver | ||||||||||
| # Ray token auth (optional): workers query the Dashboard through FQ_RAY_IP for their | ||||||||||
| # Ray NodeID, so they need the same token as the head collector. | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| # - name: RAY_AUTH_TOKEN | ||||||||||
| # valueFrom: | ||||||||||
| # secretKeyRef: | ||||||||||
| # name: raycluster-historyserver # defaults to the RayCluster name | ||||||||||
| # key: auth_token | ||||||||||
| command: [collector, --role=Worker, --runtime-class-name=azureblob, --ray-cluster-name=raycluster-historyserver, --ray-root-dir=log, --events-port=8084] | ||||||||||
| volumeMounts: | ||||||||||
| - name: historyserver | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,12 @@ metadata: | |||||
| name: raycluster-historyserver | ||||||
| namespace: default | ||||||
| spec: | ||||||
| # Uncomment to make the Dashboard reject unauthenticated requests, which the collector | ||||||
| # sidecars below must survive (ray-project/kuberay#5056). The operator rejects | ||||||
| # `authOptions.mode: token` unless `rayVersion` is set and is at least 2.52.0. | ||||||
|
win5923 marked this conversation as resolved.
Outdated
|
||||||
| # rayVersion: "2.52.0" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
ditto |
||||||
| # authOptions: | ||||||
| # mode: token | ||||||
| headGroupSpec: | ||||||
| rayStartParams: | ||||||
| dashboard-host: 0.0.0.0 | ||||||
|
|
@@ -84,6 +90,17 @@ spec: | |||||
| # endpoints above. Accepts Go duration format (e.g., "30s", "1m", "5m"). | ||||||
| - name: RAY_COLLECTOR_POLL_INTERVAL | ||||||
| value: "30s" | ||||||
| # Ray token auth (optional): uncomment when the RayCluster sets | ||||||
| # `spec.authOptions.mode: token` (which also requires `spec.rayVersion`, unset here). | ||||||
| # Without the token the collector gets 401 from the Dashboard during NodeID discovery. | ||||||
|
win5923 marked this conversation as resolved.
Outdated
|
||||||
| # - name: RAY_AUTH_TOKEN | ||||||
| # valueFrom: | ||||||
| # secretKeyRef: | ||||||
| # name: ${RAY_CLUSTER} # defaults to the RayCluster name | ||||||
| # key: auth_token | ||||||
| # For `spec.authOptions.enableK8sTokenAuth` (Ray 2.55.0+) set | ||||||
| # RAY_ENABLE_K8S_TOKEN_AUTH="true" instead, plus a projected ServiceAccount token | ||||||
| # volume at /var/run/secrets/ray.io/serviceaccount. | ||||||
|
win5923 marked this conversation as resolved.
Outdated
|
||||||
| command: | ||||||
| - collector | ||||||
| - --role=Head | ||||||
|
|
@@ -158,6 +175,13 @@ spec: | |||||
| value: *rayTmpRoot | ||||||
| - name: GCS_BUCKET | ||||||
| value: "${GCS_BUCKET}" | ||||||
| # Ray token auth (optional): workers query the Dashboard through FQ_RAY_IP for their | ||||||
| # Ray NodeID, so they need the same token as the head collector. | ||||||
|
win5923 marked this conversation as resolved.
Outdated
|
||||||
| # - name: RAY_AUTH_TOKEN | ||||||
| # valueFrom: | ||||||
| # secretKeyRef: | ||||||
| # name: ${RAY_CLUSTER} # defaults to the RayCluster name | ||||||
| # key: auth_token | ||||||
| command: | ||||||
| - collector | ||||||
| - --role=Worker | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.