Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KubernetesDir is the directory Kubernetes owns for storing various configuration files KubernetesDir = "/etc/kubernetes/" KubeletPodManifestDir = KubernetesDir + "manifests/" SchedulerPolicyConfigFile = KubernetesDir + "scheduler-policy-config.json" EtcdPodManifestFile = KubeletPodManifestDir + "etcd.yaml" KubeAPIServerPodManifestFile = KubeletPodManifestDir + "kube-apiserver.yaml" KubeControllerManagerPodManifestFile = KubeletPodManifestDir + "kube-controller-manager.yaml" KubeSchedulerPodManifestFile = KubeletPodManifestDir + "kube-scheduler.yaml" KeepavlivedManifestFile = KubeletPodManifestDir + "keepalived.yaml" DstTmpDir = "/tmp/k8s/" DstBinDir = "/usr/bin/" CNIBinDir = "/opt/cni/bin/" CNIDataDir = "/var/lib/cni/" CNIConfDIr = "/etc/cni" CertificatesDir = KubernetesDir + "pki/" EtcdDataDir = "/var/lib/etcd" TokenFile = KubernetesDir + "known_tokens.csv" KubectlConfigFile = "/root/.kube/config" KeepavliedConfigFile = "/etc/keepalived/keepalived.conf" OIDCCACertName = "oidc-ca.crt" OIDCCACertFile = CertificatesDir + OIDCCACertName // CACertName defines certificate name CACertName = CertificatesDir + "ca.crt" // EtcdCACertName defines etcd's CA certificate name EtcdCACertName = CertificatesDir + "etcd/ca.crt" // EtcdListenClientPort defines the port etcd listen on for client traffic EtcdListenClientPort = 2379 // EtcdListenPeerPort defines the port etcd listen on for peer traffic EtcdListenPeerPort = 2380 // APIServerEtcdClientCertName defines apiserver's etcd client certificate name APIServerEtcdClientCertName = CertificatesDir + "apiserver-etcd-client.crt" // APIServerEtcdClientKeyName defines apiserver's etcd client key name APIServerEtcdClientKeyName = CertificatesDir + "apiserver-etcd-client.key" KubeadmConfigFileName = KubernetesDir + "kubeadm-config.yaml" // LabelNodeRoleMaster specifies that a node is a control-plane // This is a duplicate definition of the constant in pkg/controller/service/service_controller.go LabelNodeRoleMaster = "node-role.kubernetes.io/master" ProviderDir = "provider/baremetal/" SrcDir = ProviderDir + "res/" ConfDir = ProviderDir + "conf/" ManifestsDir = ProviderDir + "manifests/" ConfigFile = ConfDir + "config.yaml" )
View Source
const ( // ProxyStatusPort is the default port for the proxy metrics server. // May be overridden by a flag at startup. ProxyStatusPort = 10249 // KubeletPort is the default port for the kubelet server on each host machine. // May be overridden by a flag at startup. KubeletPort = 10250 // InsecureSchedulerPort is the default port for the scheduler status server. // May be overridden by a flag at startup. // Deprecated: use the secure KubeSchedulerPort instead. InsecureSchedulerPort = 10251 // InsecureKubeControllerManagerPort is the default port for the controller manager status server. // May be overridden by a flag at startup. // Deprecated: use the secure KubeControllerManagerPort instead. InsecureKubeControllerManagerPort = 10252 // InsecureCloudControllerManagerPort is the default port for the cloud controller manager server. // This value may be overridden by a flag at startup. // Deprecated: use the secure CloudControllerManagerPort instead. InsecureCloudControllerManagerPort = 10253 // KubeletReadOnlyPort exposes basic read-only services from the kubelet. // May be overridden by a flag at startup. // This is necessary for heapster to collect monitoring stats from the kubelet // until heapster can transition to using the SSL endpoint. // TODO(roberthbailey): Remove this once we have a better solution for heapster. KubeletReadOnlyPort = 10255 // ProxyHealthzPort is the default port for the proxy healthz server. // May be overridden by a flag at startup. ProxyHealthzPort = 10256 // KubeControllerManagerPort is the default port for the controller manager status server. // May be overridden by a flag at startup. KubeControllerManagerPort = 10257 // CloudControllerManagerPort is the default port for the cloud controller manager server. // This value may be overridden by a flag at startup. CloudControllerManagerPort = 10258 // KubeSchedulerPort is the default port for the scheduler status server. // May be overridden by a flag at startup. KubeSchedulerPort = 10259 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.