我有两个问题:
背景:
Calico的默认Pod网络CIDR为192.160.0.0/16,doco声明它不能与物理网络重叠。我可以在calico.yaml中更改该设置,但文档也会声明配置etc_endpoints。
Q1。为什么我需要配置etcd_endpoint?
Q2。我在哪里找到价值?
发布于 2018-10-15 16:04:56
如果您想使用Calico,您必须为您的家庭局域网使用不同的IP范围,因为Calico使用192.168.0.0/16网络。您可以将您的家庭网络更改为10.0.0.0/8或更小,也可以更改为172.16.0.0/16。作为一种选择,您可以为您的集群选择另一个CNI。仅改变YAML中的CALICO_IPV4POOL_CIDR是不够的。IP范围192.168.0.0/16在许多地方都有使用。
更新
如果使用默认值,则不需要预先配置它,只需检查它是否是正确的端点。来自kubernetes博士:提供的文件
# Calico Version v3.1.3
# https://docs.projectcalico.org/v3.1/releases#v3.1.3
# This manifest includes the following component versions:
# calico/node:v3.1.3
# calico/cni:v3.1.3
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# To enable Typha, set this to "calico-typha" *and* set a non-zero value for Typha replicas
# below. We recommend using Typha if you have more than 50 nodes. Above 100 nodes it is
# essential.
typha_service_name: "none"
# The CNI network configuration to install on each node.
cni_network_config: |-不需要etcd_endpoints,因为它被用作Kubernetes集群etcd。
在官方的卡里科医生新版的纸上。
配置
# Calico Version v3.2.3
# https://docs.projectcalico.org/v3.2/releases#v3.2.3
# This manifest includes the following component versions:
# calico/node:v3.2.3
# calico/cni:v3.2.3
# calico/kube-controllers:v3.2.3
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Configure this with the location of your etcd cluster.
etcd_endpoints: "http://10.96.232.136:6666"
# If you're using TLS enabled etcd uncomment the following.
# You must also populate the Secret below with these files.
etcd_ca: "" # "/calico-secrets/etcd-ca"
etcd_cert: "" # "/calico-secrets/etcd-cert"
etcd_key: "" # "/calico-secrets/etcd-key"
# Configure the Calico backend to use.
calico_backend: "bird"在最新版本的Calico中,您需要从服务IP池手动向任何空闲IP提供etcd_endpoints,或者如果您使用默认设置,则可以保留它的原样。这将是一个新的etcd,将启动为卡利科的需要。你可以把你的豆荚换成任何泳池。现在起作用了,我刚检查过。
https://stackoverflow.com/questions/52816915
复制相似问题