Schedule a pod as follows:

name: nginx-kusc00401

Image: nginx

Node selector: disk-spinning

如下:
root@lijian:~/k8s# cat pod.yml 
apiVersion: v1
kind: Pod
metadata: 
  name: nginx-kusc00401
spec: 
  containers:
  - name: nginx
    image: nginx:latest
  nodeSelector:
     disk: spinning 

root@lijian:~/k8s# kubectl apply -f pod.yml 
pod/nginx-kusc00401 created

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐