jupyter works

This commit is contained in:
Waylon Walker 2023-11-05 14:29:04 -06:00
parent 8af5e75966
commit 04dfe716b8
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
2 changed files with 152 additions and 0 deletions

134
jupyter/deployment.yaml Normal file
View file

@ -0,0 +1,134 @@
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n jupyter
kompose.service.expose: jupyter.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: jupyter
name: jupyter
namespace: jupyter
spec:
ports:
- name: "8888"
port: 8888
targetPort: 8888
selector:
io.kompose.service: jupyter
status:
loadBalancer: {}
---
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: null
name: jupyter
namespace: jupyter
spec: {}
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n jupyter
kompose.service.expose: jupyter.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: jupyter
name: jupyter
namespace: jupyter
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: jupyter
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n jupyter
kompose.service.expose: jupyter.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/jupyter-default: "true"
io.kompose.service: jupyter
spec:
containers:
- args:
- jupyter
- lab
- --ip
- 0.0.0.0
env:
- name: PASSWORD
value: password
image: amalic/jupyterlab
name: jupyter
ports:
- containerPort: 8888
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /notebooks/jupyter
name: jupyter-data
restartPolicy: Always
volumes:
- name: jupyter-data
persistentVolumeClaim:
claimName: jupyter-data
status: {}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n jupyter
kompose.service.expose: jupyter.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: jupyter
name: jupyter
namespace: jupyter
spec:
rules:
- host: jupyter.wayl.one
http:
paths:
- backend:
service:
name: jupyter
port:
number: 8888
path: /
pathType: Prefix
status:
loadBalancer: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jupyter-data
name: jupyter-data
namespace: jupyter
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

View file

@ -0,0 +1,18 @@
# docker run -p 10000:8888 quay.io/jupyter/scipy-notebook:2023-10-31
version: "2.1"
services:
jupyter:
# image: quay.io/jupyter/scipy-notebook:2023-10-31
image: amalic/jupyterlab
container_name: jupyter
ports:
- 8888
environment:
- PASSWORD=password
volumes:
- jupyter-data:/notebooks/jupyter
labels:
kompose.service.expose: jupyter.wayl.one
command: ["jupyter", "lab", "--ip", "0.0.0.0"]
volumes:
jupyter-data: