Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 集群巡检工具 TencentBlueKing#2367 #2744

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wingyao666
Copy link
Collaborator

根据review优化:
组件配置一致性检查 check_master.sh
集群可用性监测 check_cluster.sh
系统应用检测(Pod状态/服务)check_system.sh

clear
;;
esac
sleep 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

未看到超时break的处理逻辑

kubectl get po "$pod" -n ${CHECK_NAMESAPCE} -o json | jq .spec.containers[0].command >"$RESULT_PATH/$pod"
host_ip=$(kubectl get po "$pod" -n ${CHECK_NAMESAPCE} -o json | jq .status.hostIP | sed 's/"//g')
sed -i "s/${host_ip}//" "$RESULT_PATH/$pod"
done
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

也可以考虑直接删掉整个status部分,只确认pod本身的配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants