Last active
May 30, 2020 21:10
-
-
Save pmundt/40fa11abaf9581f3281a2edd16a129cd to your computer and use it in GitHub Desktop.
HTTP Echo Service scheduled on an in-cluster EdgeTPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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