Skip to content

Instantly share code, notes, and snippets.

@pmundt
Last active May 30, 2020 21:10
Show Gist options
  • Save pmundt/40fa11abaf9581f3281a2edd16a129cd to your computer and use it in GitHub Desktop.
Save pmundt/40fa11abaf9581f3281a2edd16a129cd to your computer and use it in GitHub Desktop.
HTTP Echo Service scheduled on an in-cluster EdgeTPU
apiVersion: v1
kind: Pod
metadata:
name: http-echo-edgetpu-pod
labels:
app: http-echo
spec:
containers:
- name: http-echo
image: adaptant/http-echo
imagePullPolicy: IfNotPresent
args: [ "-text", "hello from a node with an EdgeTPU" ]
ports:
- containerPort: 5678
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# USB-attached Coral AI Accelerator
- key: feature.node.kubernetes.io/usb-fe_1a6e_089a.present
operator: In
values: [ "true" ]
- matchExpressions:
# Coral Dev Board
- key: beta.devicetree.org/fsl-imx8mq-phanbell
operator: In
values: [ "1" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment