Skip to content

Instantly share code, notes, and snippets.

@yuvipanda
Last active Mar 5, 2020
Embed
What would you like to do?
apiVersion: v1
kind: Pod
metadata:
labels:
hub.jupyter.org/network-access-hub: "true"
name: efs-access
namespace: wfirst-sit
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: hub.jupyter.org/node-purpose
operator: In
values:
- user
weight: 100
automountServiceAccountToken: false
containers:
- args:
image: ubuntu:18.04
name: shell
command:
- /bin/bash
stdin: true
tty: true
volumeMounts:
- mountPath: /efs
name: efs
tolerations:
- effect: NoSchedule
key: hub.jupyter.org/dedicated
operator: Equal
value: user
- effect: NoSchedule
key: hub.jupyter.org_dedicated
operator: Equal
value: user
volumes:
- name: efs
persistentVolumeClaim:
claimName: efs-persist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment