Skip to content

Instantly share code, notes, and snippets.

@cberner
Created June 14, 2018 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cberner/9f9b83166c80f4bd662a854a3afb518b to your computer and use it in GitHub Desktop.
Save cberner/9f9b83166c80f4bd662a854a3afb518b to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: busybox
labels:
app: busybox
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: openai.com/team
operator: Exists
tolerations:
- key: openai.com/team
value: infra
operator: Equal
imagePullSecrets:
- name: docker2-pull-secret
containers:
- image: docker2.openai.com/cberner/sandbox:shell
command:
- sleep
- "1000000"
imagePullPolicy: IfNotPresent
name: busybox
resources:
requests:
cpu: 1
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment