【发布时间】:2019-01-01 04:26:40
【问题描述】:
我是 Kubernetes 的新手,我正在研究 Kubernetes 集群的计算资源管理。出于这个原因,我在 go 中下载了一个玩具调度程序 (https://github.com/kelseyhightower/scheduler)。我知道一旦将计算资源请求设置为 pod,就无法更改它们。但是,假设我没有在 yaml 文件中设置 pod 的资源需求:例如nginx.yaml:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
schedulerName: hightower
containers:
- name: nginx
image: nginx
ports:
- containerPort: 8080
protocol: TCP
我可以为自定义调度程序尝试调度的每个 pod 应用资源请求吗?
【问题讨论】: