wmj-test/test/jupyter.yaml

39 lines
842 B
YAML

apiVersion: v1
kind: Service
metadata:
name: jupyter
labels:
app: jupyter
spec:
ports:
- port: 30000
name: http
targetPort: 8888
nodePort: 30000
selector:
app: jupyter
type: LoadBalancer
---
apiVersion: v1
kind: Pod
metadata:
name: jupyter
labels:
app: jupyter
spec:
containers:
- name: jupyter
image: jupyter/minimal-notebook:lab-3.6.1
command: ["bash", "-c", "source /etc/bash.bashrc && jupyter lab --ip 0.0.0.0 --port 8888 --no-browser --allow-root --NotebookApp.token=''"]
ports:
- containerPort: 8888
protocol: TCP
name: http
volumeMounts:
- name: persistent-storage
mountPath: /this/is/nfs
volumes:
- name: persistent-storage
nfs:
server: 192.168.252.250
path: /mnt/CGdata/ms/test_dir