一千萬個為什麽

搜索

Kubernetes API服務器KUBE_SERVICE_ADDRESSES參數和Pod網絡配置



Kubernetes有關API服務器和Pod網絡配置的KUBE_SERVICE_ADDRESSES參數的文檔在哪裏?

背景

KUBE_SERVICE_ADDRESSES參數值需要與Pod網絡的CIDR配置緊密結合,因為 KUBE_SERVICE_ADDRESSES 是 “用於服務的地址範圍”,我假設 services 在Pod網絡中進行通信。

試圖找出解釋它的Kubernetes文檔,但看起來沒有特定的文檔。如果這是真的,請提出建議,並在相關文檔的哪裏。

的/ etc/kubernetes/API服務器</強>

# The address on the local server to listen to.
#KUBE_API_ADDRESS="--insecure-bind-address=127.0.0.1"
KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"

# The port on the local server to listen on.
# KUBE_API_PORT="--port=8080"

# Port minions listen on
# KUBELET_PORT="--kubelet-port=10250"

# Comma separated list of nodes in the etcd cluster
KUBE_ETCD_SERVERS="--etcd-servers=http://127.0.0.1:2379"

# Address range to use for services
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"

# default admission control policies
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"

相關網站

Using kubeadm to Create a Cluster (3/4) Installing a pod network says specific CIDR needs to be specified to kubeadm init as a option --pod-network-cidr.

Deploy a Multi-node Kubernetes Cluster on CentOS 7:

創建一個將定義Flannel設置的flannel-config.json文件。 Flannel設置中指定的子網應與API服務器KUBE_SERVICE_ADDRESSES的值匹配。這是容器將使用的子網。

轉載註明原文: Kubernetes API服務器KUBE_SERVICE_ADDRESSES參數和Pod網絡配置

一共有 1 個回答:

https://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/

 #用於服務的地址範圍
KUBE_SERVICE_ADDRESSES = “ - 服務群集-IP-範圍= 10.254.0.0/16”
</代碼>