请老师帮看下
kubectl 安装的 kube-prometheus 0.6
kubernete 1.18
在执行完成kube-prometheus完后,发现kube-controller-manager/0 (0/0 up), monitoring/kube-scheduler(0/0);
其他的Endpoint都是正常的
对controller进行了下面的操作
apiVersion: v1
kind: Service
metadata:
namespace: kube-system
name: kube-controller-manager
labels:
k8s-app: kube-controller-manager
spec:
type: ClusterIP
clusterIP: None
ports:
apiVersion: v1
kind: Endpoints
metadata:
labels:
k8s-app: kube-controller-manager
name: kube-controller-manager
namespace: kube-system
subsets:
5.刷新Prometheus后
5.1 显示为monitoring/kube-controller-manager/0 (0/1 up)
https://192.168.247.200:10252/metrics —》error: server returned HTTP status 403 Forbidden