Part3 工作负载和调度
08. 扩容 Deployment (4%)
Task
Scale the deployment loadbalancer to 6 pods.
中文解释:
扩容名称为 loadbalancer 的 Deployment 资源的副本数为 6
解题:
kubectl scale deployment loadbalancer --replicas=6
kubectl get pod
09. 调度 Pod (4%)
Task
Schedule a pod as follows:
Name:
nginx-kusc00401Image:
nginxNode selector:
disk=spinning
中文解释:
创建一个 Pod ,名称为:nginx-kusc00401 ,镜像地址是:nginx ,调度到具有 disk=spinning 标签的接点上
解题:
10. 统计节点数 (4%)
Task
Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to /opt/KUSC00402/kusc00402.txt .
中文解释:
检查集群中有多少节点为 ready 状态(不包含有 NoSchedule 污点的节点),然后将数字写入到 /opt/KUSC00402/kusc00402.txt 文件中。
解题:
11. 创建多容器 Pod (4%)
Task
Create a pod named kucc1 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached + consul .
中文解释:
创建一个 Pod 名称为 kucc1 ,这个 Pod 可能包含 1-4 个容器,该题为4个:nginx + redis + memcached + consul
解题:
Last updated