apiVersion: v1 #指定api版本,此值必须在kubectl apiversion中
kind: Pod #指定创建资源的角色/类型
metadata:
name: ubuntu-ascend-02 #资源的名字,在同一个namespace中必须唯一
spec:
containers:
- name: ubuntu-ascend-02-k8s #容器的名字
image: ubuntu:latest #容器使用的镜像地址
command: #启动容器的运行命令
- "bin/bash"
- "-c"
- "sleep 10000"
resources:
limits: #资源限制
huawei.com/Ascend310: 2