Skip to content

CZ: deploy our own TESK (elixir-tes-ns) #122

Done

Description

@uniqueg

Why?

The CZ Node's existing TESK can't be reached from our services (nginx IP allow-list), and we have no access to its namespace. We now have our own namespace on the CERIT-SC Kubernetes cluster (elixir-tes-ns, Rancher project "Elixir TES"), with rights to create deployments, services, ingresses, PVCs, Secrets, service accounts, Roles and RoleBindings, jobs and cert-manager certificates (CPU limit quota: 100). A TESK we deploy ourselves breaks nobody's service and is fully under our control. It would serve as a second Node backend behind proTES, a site for the NVFlare testbed (nvflare-wes-testbed#10) and a test deployment for LS Login (#35).

How?

  1. Runbook in Fish, read-only checks first: cluster version, Pod Security level of the namespace, storage classes, ingress class and cert-manager ClusterIssuers, egress (the testbed's probe).
  2. Install the TESK chart 0.4.0 (tesk-api 2.0.0) with LS Login token checks from the start (no anonymous TESK; only elixir:ECP_CLN:EOC-Compute and elixir:ECP_CLN:ADMIN may run tasks), ingress with TLS via cert-manager, and security contexts that CERIT's policy accepts. Check whether executor pods of arbitrary task images can run under it; document what's needed if not.
  3. kubectl apply --dry-run=server of the rendered chart before the real install.
  4. Smoke test with a token: one task that completes, one that fails.
  5. Optional: a namespaced service account bound to edit in elixir-tes-ns only, for automation, if CERIT allows it.
  6. Register it in the Cloud Registry (serviceInfo.id cz.e-infra.cloud.dyn.tesk). The proTES connection is the next CZ step, CZ: connect proTES to our CZ TESK #138; it doesn't belong here, so this issue closes as soon as the TESK runs and is registered.

Acceptance criteria

  • TESK runs in elixir-tes-ns, is reachable over HTTPS and refuses requests without a valid LS Login token.
  • A test task completes and logs are retrievable.
  • The runbook (install, upgrade, removal) is in the work folder and was run end to end.
  • It is registered in the Cloud Registry.

Part of #108 (CZ row). Next on the CZ Node: #138 (proTES). Related: #35 (the FI TESK's configuration), #34, elixir-cloud-aai/nvflare-wes-testbed#10.


Checklist update 2026-11-26: TESK runs in elixir-tes-ns at https://tesk.dyn.cloud.e-infra.cz under restricted Pod Security (tasks without token 401, garbage token 401; revision 9); test tasks completed with logs (C5/C6, V1-CZ on 2026-11-25); registered in the Cloud Registry (M4.1, 2026-11-25). Open: the runbook's removal step has not been run end to end.

Activity

  1. self-assigned this
    on Nov 18, 2026
  2. added
    priority: high
    status: in progress
    type: delivery
    workload: days
    ecp-wp4: M4.4
    on Nov 18, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 18, 2026
  4. changed the title [-]Deploy our own TESK on the CZ Node (elixir-tes-ns)[/-] [+]CZ: deploy our own TESK (elixir-tes-ns)[/+] on Nov 23, 2026
  5. moved this from In progress to Backlog in ELIXIR On-Cloudon Nov 25, 2026
  6. added
    status: blocked
    and removed
    status: in progress
    on Nov 25, 2026
  7. moved this from Backlog to Ready in ELIXIR On-Cloudon Nov 28, 2026
  8. added
    status: triage
    and removed
    status: blocked
    on Nov 28, 2026
  9. moved this from Ready to In progress in ELIXIR On-Cloudon Nov 28, 2026
  10. added
    status: in progress
    and removed
    status: in progress
    status: triage
    on Nov 28, 2026
  11. uniqueg commented on Nov 28, 2026

    @uniqueg
    MemberAuthor

    Closing check, 2026-11-28. All read-only: the public endpoints plus kubectl get in elixir-tes-ns, without Secrets.

    • Runs, HTTPS, refuses requests without a valid token: https://tesk.dyn.cloud.e-infra.cz/ga4gh/tes/v1/service-info returns 200 (id cz.e-infra.cloud.dyn.tesk, TES 1.1.0). GET /tasks returns 401 without a token and 401 with an invalid one. In the namespace, Deployment tesk-api is 1/1 (chart 0.4.0 from the TESK dev head, image tesk-api:sha-82ab28c…), and Ingress class nginx-traefik and Certificate tesk-tls are Ready. The API checks tokens against LS Login userinfo. Only elixir:ECP_CLN:EOC-Compute creates tasks, and proTES' client is allow-listed for client credentials (CZ: connect proTES to our CZ TESK #138).
    • A test task completes and its logs can be read: the smoke and CERIT checks passed on 2026-11-24: a task with an https input and a volume completed, a task with exit 3 ended in EXECUTOR_ERROR, resource limits were applied, and all task pods ran under restricted Pod Security. Tasks have kept completing since then (NVFlare testbed, proTES).
    • Registered: Cloud Registry entry 21CCTS (Populate the Cloud Registry: owners register their own deployments, admins remove placeholder entries #29).
    • Runbook: it's in the work folder (install, checks, upgrade, smoke tests, removal: one Fish script per step).
      • Install: ran on CERIT on 2026-11-23, after read-only checks and a server-side dry run.
      • Upgrade: helm upgrade of release tesk. It ran on CERIT eight times between 2026-11-23 and 2026-11-25 (Helm revisions 2 to 9) for the fix of the task ConfigMap labels, the service-info name and organisation, proTES' service client, and dropping ADMIN from the groups that may create tasks. Each run was followed by the public checks.
      • Removal: ran end to end in a local kind cluster built like elixir-tes-ns (restricted Pod Security, the same CPU quota, no LimitRange) on 2026-11-23, and left nothing behind. It wasn't run on CERIT, because there it would take down a live, registered proTES backend. It stays a step that needs explicit approval.

    Every acceptance criterion is met (the removal as described above). The proTES connection is in #138 (closed). Closing.

  12. moved this from In progress to Done in ELIXIR On-Cloudon Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4priority: hightype: deliveryworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions