I would like to configure the password to my Jupyter notebook in the deployment.yaml file. I run this file with kubectl. The notebook starts up fine, but the password is not set. How can I improve the yaml file to configure a password?
apiVersion: apps/v1
kind: Deployment
metadata:
name: minimal-notebook
labels:
app: minimal-notebook
spec:
replicas: 1
selector:
matchLabels:
app: minimal-notebook
template:
metadata:
labels:
app: minimal-notebook
spec:
containers:
- name: minimal-notebook
image: jupyter/minimal-notebook:latest
ports:
- containerPort: 8888
args: ["start-notebook.sh", "--NotebookApp.password='sha1:[password]'"]