[root@k8s-matser01 manifests]# cat /etc/kubernetes/manifests/kube-scheduler.yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
component: kube-scheduler
tier: control-plane
name: kube-scheduler
namespace: kube-system
spec:
containers:
- command:
- kube-scheduler
- --authentication-kubeconfig=/etc/kubernetes/scheduler.conf
- --v=4 ## 开启这个日志级别
- --authorization-kubeconfig=/etc/kubernetes/scheduler.conf
- --bind-address=0.0.0.0
- --kubeconfig=/etc/kubernetes/scheduler.conf
- --leader-elect=true
- --port=0
····
[root@k8s-matser01 prometheus]# kubectl get pod -n kube-mon -owide|grep pro
prometheus-5cbcb69b8b-jjdnw 1/1 Running 3 5m41s 10.244.1.44 k8s-work01 <none> <none>