The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Kubernetes from "@alchemy.run/kubernetes"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as HttpServerResponse from "effect/http/HttpServerResponse"; |
| 4 | import { TestLocalCluster } from "./local.ts"; |
| 5 | |
| 6 | /** An Effect HTTP server run as a Deployment on the local cluster. */ |
| 7 | export default Kubernetes.Deployment( |
| 8 | "LocalEffectServer", |
| 9 | // `cluster` takes the cluster resource's Effect directly. |
| 10 | { |
| 11 | cluster: TestLocalCluster, |
| 12 | main: import.meta.url, |
| 13 | name: "local-effect-server", |
| 14 | port: 3000, |
| 15 | serviceType: "ClusterIP", |
| 16 | }, |
| 17 | Effect.gen(function* () { |
| 18 | return { |
| 19 | fetch: Effect.succeed(HttpServerResponse.text("ok")), |
| 20 | }; |
| 21 | }), |
| 22 | ); |