When installing an agent, you need to access TKE over the private network. If private network access is not enabled for the corresponding TKE cluster, the installation will fail. You can solve this problem by following the steps below:
In TKE, the launch parameter --metrics-bind-address
is not specified for kube-proxy, and the default listening address of the metrics service is 127.0.0.1; therefore, the agent cannot pull metrics by Pod IP. You can solve this problem by following the steps below:
kubectl edit ds kube-proxy -n kube-system
and add the launch parameter --metrics-bind-address=0.0.0.0
in spec.template.spec.containers.args
.The inbound rule of the default security group of the master node in a dedicated TKE cluster does not allow access to the metrics ports of some components. You can solve this problem by following the steps below:
tke-master-security-for-<tke cluster="" id="">
in the security group search box. For example, if the cluster ID is cls-xxx
, then enter tke-master-security-for-cls-xxx
.TCP:60001,60002
. Select the rules one by one and add ports 10249, 10252, 10251, 9100, and 9153 for the following purposes respectively:
Was this page helpful?