1 /* 2 Copyright 2014 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package ports 18 19 import ( 20 cpoptions "k8s.io/cloud-provider/options" 21 ) 22 23 // In this file, we can see all default port of cluster. 24 // It's also an important documentation for us. So don't remove them easily. 25 const ( 26 // ProxyStatusPort is the default port for the proxy metrics server. 27 // May be overridden by a flag at startup. 28 ProxyStatusPort = 10249 29 // KubeletPort is the default port for the kubelet server on each host machine. 30 // May be overridden by a flag at startup. 31 KubeletPort = 10250 32 // KubeletReadOnlyPort exposes basic read-only services from the kubelet. 33 // May be overridden by a flag at startup. 34 // This is necessary for heapster to collect monitoring stats from the kubelet 35 // until heapster can transition to using the SSL endpoint. 36 // TODO(roberthbailey): Remove this once we have a better solution for heapster. 37 KubeletReadOnlyPort = 10255 38 // KubeletHealthzPort exposes a healthz endpoint from the kubelet. 39 // May be overridden by a flag at startup. 40 KubeletHealthzPort = 10248 41 // ProxyHealthzPort is the default port for the proxy healthz server. 42 // May be overridden by a flag at startup. 43 ProxyHealthzPort = 10256 44 // KubeControllerManagerPort is the default port for the controller manager status server. 45 // May be overridden by a flag at startup. 46 KubeControllerManagerPort = 10257 47 // CloudControllerManagerPort is the default port for the cloud controller manager server. 48 // This value may be overridden by a flag at startup. 49 CloudControllerManagerPort = 10258 50 // CloudControllerManagerWebhookPort is the default port for the cloud 51 // controller manager webhook server. May be overridden by a flag at 52 // startup. 53 CloudControllerManagerWebhookPort = cpoptions.CloudControllerManagerWebhookPort 54 ) 55