Skip to content

Commit

Permalink
Do not add replicas to k8s for authoring notebooks
Browse files Browse the repository at this point in the history
See #2826.
  • Loading branch information
josevalim committed Oct 11, 2024
1 parent 8919a0e commit c22f3b7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/deployment/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ kind: Service
metadata:
name: livebook-loadbalancer
spec:
type: LoadBalancer
type: ClusterIP
ports:
- port: 8080
targetPort: 8080
Expand All @@ -77,7 +77,10 @@ kind: Deployment
metadata:
name: livebook
spec:
replicas: 3
# When deploying Livebook for authoring notebooks to Kubernetes,
# the number of replicas must be 1, since Livebook considers you
# will assign one instance per user.
replicas: 1
selector:
matchLabels:
app: livebook
Expand Down Expand Up @@ -134,6 +137,8 @@ data:
LIVEBOOK_COOKIE: <base64_encoded_password>
```
The setup above does not set up a data directory, which means once you restart the instance, any configuration will be lost. If you have a persistent volume, you can point the `LIVEBOOK_DATA_PATH` environment variable to it.

## Deploy notebooks as applications

It is possible to deploy any notebook as an application in Livebook. Inside the notebook, open up the Application pane on the sidebar (with a rocket icon), click "Manual Docker deployment", and follow the required steps.
Expand Down

0 comments on commit c22f3b7

Please sign in to comment.