代码拉取完成,页面将自动刷新
apiVersion: apps/v1
kind: Deployment
metadata:
name: resnetinfer1-1-deploy
labels:
app: infers
spec:
replicas: 1
selector:
matchLabels:
app: infers
template:
metadata:
labels:
app: infers
fault-scheduling: grace # Add this Labels, will reschedule pods in the event of chip failures.
ring-controller.atlas: ascend-310P # Add this Label, used to check job kind.
vnpu-dvpp: "null" # For NPU dynamic segmentation,null means don't care dvpp resource ,yes means used dvpp,no means ndvpp
vnpu-level: low # For NPU dynamic segmentation,low means low-level configuration,high means performance first,default low.
spec:
schedulerName: volcano
automountServiceAccountToken: false
nodeSelector:
host-arch: huawei-arm # Select the os arch. If the os arch is x86, change it to huawei-x86.
containers:
- image: ubuntu-infer:v1 # Inference image name
imagePullPolicy: IfNotPresent
name: resnet50infer
resources:
requests:
huawei.com/npu-core: 1 # Number of required NPUs. The maximum value is 8. You can add lines below to configure resources such as memory and CPU.
limits:
huawei.com/npu-core: 1 # The value should be the same as that of requests .
volumeMounts:
- name: slog
mountPath: /var/log/npu/conf/slog/ #Log path
- name: localtime #The container time must be the same as the host time.
mountPath: /etc/localtime
volumes:
- name: slog
hostPath:
path: /var/log/npu/conf/slog/
- name: localtime
hostPath:
path: /etc/localtime
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。