Use context: kubectl config use-context k8s-c1-H

There are two Pods named *o3db-*** in Namespace project-c13***. C13 management asked you to scale the Pods down to one replica to save resources.


译文:

名称空间project-c13中有两个名为*o3db-**的Pod。C13管理层要求你将Pods缩减到一个副本,以节省资源。


解答:

检查pods

k -n project-c13 get pod | grep o3db

file

检查常用资源

k -n project-c13 get deploy,ds,sts | grep o3db

file

查看pod标签,可以看到statefulset字段

k -n project-c13 get pod --show-labels | grep o3db

file

对statefulset中3db进行缩容

k -n project-c13 scale sts o3db --replicas 1
k -n project-c13 get sts o3db

file


Killer.sh CKA模拟题目 汇总