Skip to content

Instantly share code, notes, and snippets.

@hsm207
Created April 28, 2020 19:07
Show Gist options
  • Save hsm207/e6f46e9db11f840332e0c1079aaaac90 to your computer and use it in GitHub Desktop.
Save hsm207/e6f46e9db11f840332e0c1079aaaac90 to your computer and use it in GitHub Desktop.
Deploy jupyter container with fsx mounted
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: jupyter
name: jupyter
spec:
replicas: 1
selector:
matchLabels:
app: jupyter
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: jupyter
spec:
initContainers:
- image: busybox:1.28
name: fsx-bug-fix
resources: {}
volumeMounts:
- name: persistent-storage
mountPath: /home/jovyan/fsx
command: ['sh', '-c', "chmod 777 /home/jovyan/fsx"]
containers:
- image: jupyter/tensorflow-notebook:latest
name: tensorflow-notebook
resources: {}
volumeMounts:
- name: persistent-storage
mountPath: /home/jovyan/fsx
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: fsx-claim
securityContext:
fsGroup: 100
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment