Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions compose/dev/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ services:
- socket-node-modules:/app/node_modules
command: sh -c "yarn add yjs y-websocket && HOST=0.0.0.0 PORT=4233 npx y-websocket"

example-runtime:
# TODO Verify the latest image will be downloaded for each new release.
image: lihebi/codepod-runtime:latest

example-kernel:
image: lihebi/codepod-kernel-python:latest

volumes:
db-data:
api-node-modules:
Expand Down
37 changes: 37 additions & 0 deletions k8s/helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,40 @@ spec:
protocol: TCP
port: 4011
targetPort: 4011

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-runtime-deployment
labels:
app: example-runtime
spec:
replicas: 3
selector:
matchLabels:
app: example-runtime
template:
metadata:
labels:
app: example-runtime
spec:
containers:
- name: example-runtime-kernel
image: lihebi/codepod-kernel-python:{{ .Chart.AppVersion }}
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"
- name: example-runtime-ws
image: lihebi/codepod-runtime:{{ .Chart.AppVersion }}
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"