问题遇到的现象和发生背景
原来我的k8s是三个节点的,就有这个问题,我尝试单节点部署,然后就报另外两台机子ip这个问题
k8s也安装成功了,pod也都running
问题相关代码,请勿粘贴截图
[root@yq01-aip-aikefu19a3d6e1 kubespray]# kubectl get pods
NAME READY STATUS RESTARTS AGE
alertmanager-prometheus-operator-alertmanager-0 2/2 Running 0 47m
api-monitor-exporter-deployment-84c7df696d-2qphw 1/1 Running 0 47m
det-flowalert-58c8c6d7d9-mc2wq 1/1 Running 0 47m
det-registry-externalpostgresql-master-0 1/1 Running 0 48m
det-registry-externalpostgresql-slave-0 1/1 Running 0 48m
det-registry-externalredis-master-0 1/1 Running 0 48m
det-registry-externalredis-slave-84fdc6fd8b-hvkc5 1/1 Running 0 48m
det-registry-harbor-chartmuseum-85f5f44f57-5jtz6 1/1 Running 0 48m
det-registry-harbor-clair-7c76f7b7d5-4xn49 2/2 Running 1 48m
det-registry-harbor-core-799cf9ccb5-l677m 1/1 Running 0 48m
det-registry-harbor-jobservice-7dd65f9cc7-5hwfp 1/1 Running 0 48m
det-registry-harbor-notary-server-5446d8c87c-2wb7h 1/1 Running 2 48m
det-registry-harbor-notary-signer-599fdbb5d7-mr499 1/1 Running 2 48m
det-registry-harbor-portal-586d68c94f-mh87k 1/1 Running 0 48m
det-registry-harbor-registry-c4dbbcd87-fvc4b 2/2 Running 0 48m
ipmi-exporter-6x8dd 1/1 Running 0 47m
prometheus-operator-blackbox-exporter-7f568bbbc8-l9ph7 1/1 Running 0 47m
prometheus-operator-grafana-85799f9dbd-xqqh2 2/2 Running 0 47m
prometheus-operator-kube-state-metrics-b95d5cdf-b7t7f 1/1 Running 0 47m
prometheus-operator-operator-79dd98c95b-vlrtp 2/2 Running 0 47m
prometheus-operator-prometheus-adapter-5c5c9f588d-km79m 1/1 Running 0 47m
prometheus-operator-prometheus-node-exporter-xdltn 1/1 Running 0 47m
prometheus-prometheus-operator-prometheus-0 3/3 Running 1 47m
prometheus-prometheus-operator-prometheus-1 3/3 Running 1 47m
[root@yq01-aip-aikefu19a3d6e1 kubespray]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
yq01-aip-aikefu19a3d6e1.yq01 Ready master 52m v1.16.3
运行结果及报错内容
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.634637 I | embed: rejected connection from "10.36.250.19:40828" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.640543 I | embed: rejected connection from "10.36.250.19:40830" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.646755 I | embed: rejected connection from "10.36.245.41:52722" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.647639 I | embed: rejected connection from "10.36.245.41:52724" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.650201 I | embed: rejected connection from "10.36.245.41:52720" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.698527 I | embed: rejected connection from "10.61.187.40:49322" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.699005 I | embed: rejected connection from "10.61.187.40:49324" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.634637 I | embed: rejected connection from "10.36.250.19:40828" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.640543 I | embed: rejected connection from "10.36.250.19:40830" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.646755 I | embed: rejected connection from "10.36.245.41:52722" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.647639 I | embed: rejected connection from "10.36.245.41:52724" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.650201 I | embed: rejected connection from "10.36.245.41:52720" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.698527 I | embed: rejected connection from "10.61.187.40:49322" (error "remote error: tls: bad certificate", ServerName "")
Dec 20 17:01:00 yq01-aip-aikefu19 etcd: 2021-12-20 09:01:00.699005 I | embed: rejected connection from "10.61.187.40:49324" (error "remote error: tls: bad certificate", ServerName "")
40的IP不是我的机器,19和41是我的