Skip to content

Commit

Permalink
feat(compose): configure ports for code over http (#54)
Browse files Browse the repository at this point in the history
The code interpreter is currently being used with gRPC, but
HTTP is also available. Need to configure compose to allow
us to add (switch to) code tool over HTTP with more ports.

Signed-off-by: Mark Sturdevant <[email protected]>
  • Loading branch information
markstur authored Dec 6, 2024
1 parent 2e5bb98 commit f917db8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bee-code-interpreter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
image: icr.io/i-am-bee/bee-code-interpreter:0.0.27
ports:
- containerPort: 50051
- containerPort: 8000
env:
- name: APP_EXECUTOR_IMAGE
value: icr.io/i-am-bee/bee-code-executor:0.0.27
Expand All @@ -64,5 +65,10 @@ spec:
- port: 50051
targetPort: 50051
nodePort: 30051
name: grpc
- port: 50081
targetPort: 8000
nodePort: 30081
name: http
selector:
app: code-interpreter
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ services:
- ./bee-code-interpreter.yaml:/var/lib/rancher/k3s/server/manifests/bee-code-interpreter.yaml
ports:
- "50051:30051"
- "50081:30081"
healthcheck:
test: "kubectl get pod code-interpreter | grep Running"
interval: 10s
Expand Down

0 comments on commit f917db8

Please sign in to comment.