Skip to content

Conversation

@aylei
Copy link
Collaborator

@aylei aylei commented Sep 17, 2025

This PR add --server-log support in helm deployment, which write the server logs to both stdout (for kubectl logs) and ~/.sky/api_server/server.log for sky logs --server-logs.

Users can optionally enable log rotation.

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)
  • Relevant individual tests: /smoke-test -k test_name (CI) or pytest tests/test_smoke.py::test_name (local)
  • Backward compatibility: /quicktest-core (CI) or pytest tests/smoke_tests/test_backward_compat.py (local)

@aylei aylei requested a review from DanielZhangQD October 27, 2025 05:43
aylei added 2 commits October 27, 2025 14:16
…ver-log

# Conflicts:
#	docs/source/reference/api-server/helm-values-spec.rst
Signed-off-by: Aylei <[email protected]>
@aylei
Copy link
Collaborator Author

aylei commented Oct 27, 2025

/smoke-test -k test_helm_deploy
/smoke-test -k test_helm_deploy --gcp
/smoke-test -k test_helm_deploy --kubernetes

- name: state-volume
mountPath: /root/.sky
subPath: .sky
{{- if .Values.storage.enabled }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be removed? The .ssh should always be mounted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to keep the behavior consistent with previous deployment, there is a logic to recover ssh key from PG when storage is disabled and PG is used

@aylei aylei requested a review from DanielZhangQD October 27, 2025 07:47
Copy link
Collaborator

@DanielZhangQD DanielZhangQD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks! @aylei

@aylei aylei merged commit b7eec54 into master Oct 27, 2025
25 checks passed
@aylei aylei deleted the save-and-rotate-server-log branch October 27, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants