Skip to content

Instantly share code, notes, and snippets.

@yuvipanda
Last active March 5, 2020 14:22
Show Gist options
  • Save yuvipanda/eb11d49b9166b2926ffecc7cfa5bccf7 to your computer and use it in GitHub Desktop.
Save yuvipanda/eb11d49b9166b2926ffecc7cfa5bccf7 to your computer and use it in GitHub Desktop.
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