Networking plugin for pod networking in Kubernetes using Elastic Network Interfaces on AWS.
Download the latest version of the yaml and apply it the cluster.
kubectl apply -f aws-k8s-cni.yaml
Launch kubelet with network plugins set to cni (--network-plugin=cni
), the cni directories configured (--cni-config-dir
and --cni-bin-dir
) and node ip set to the primary IPv4 address of the primary ENI for the instance(--node-ip=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)
).It is also recommended to set --max-pods
equal to (the number of ENIs for the instance type ×(the number of IPs per ENI - 1)) + 2; for details, see vpc_ip_resource_limit.go. Setting --max-pods
will preventscheduling that exceeds the IP address resources available to the kubelet.
The default manifest expects --cni-conf-dir=/etc/cni/net.d
and --cni-bin-dir=/opt/cni/bin
.
L-IPAM requires following IAM policy:
{
"Effect": "Allow",
"Action": [
"ec2:AssignPrivateIpAddresses",
"ec2:AttachNetworkInterface",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:DescribeInstances",
"ec2:DescribeInstanceTypes",
"ec2:DescribeTags",
"ec2:DescribeNetworkInterfaces",
"ec2:DetachNetworkInterface",
"ec2:ModifyNetworkInterfaceAttribute",
"ec2:UnassignPrivateIpAddresses"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateTags"
],
"Resource": ["arn:aws:ec2:*:*:network-interface/*"]
}
Alternatively there is also a Helm chart: eks/aws-vpc-cni
make
defaults to make build-linux
that builds the Linux binaries.unit-test
, format
,lint
and vet
provide ways to run the respective tests/tools and should be run before submitting a PR.make docker
will create a docker container using the docker-build with the finished binaries, with a tag of amazon/amazon-k8s-cni:latest
make docker-build
uses a docker container (golang:1.16) to build the binaries.make docker-unit-tests
uses a docker container (golang:1.16) to run all unit tests.There are 2 components:
ipamd
, which is a long-running node-Local IP Address Management (IPAM) daemon, is responsible for:
The details can be found in Proposal: CNI plugin for Kubernetes networking over AWS VPC.
Troubleshooting Guide provides tips on how to debug and troubleshoot this CNI.
When a worker node first joins the cluster, there is only 1 ENI along with all of its addresses in the ENI. Without anyconfiguration, ipamd always try to keep one extra ENI.
When number of pods running on the node exceeds the number of addresses on a single ENI, the CNI backend start allocatinga new ENI and start using following allocation scheme:
For example, a m4.4xlarge node can have up to 8 ENIs, and each ENI can have up to 30 IP addresses. SeeElastic Network Interfaces documentation for details.
For a detailed explanation, see WARM_ENI_TARGET
, WARM_IP_TARGET
and MINIMUM_IP_TARGET
.
The Amazon VPC CNI plugin for Kubernetes supports a number of configuration options, which are set through environment variables.The following environment variables are available, and all of them are optional.
AWS_VPC_CNI_NODE_PORT_SUPPORT
Type: Boolean as a String
Default: true
Specifies whether NodePort
services are enabled on a worker node's primary network interface. This requires additionaliptables
rules and that the kernel's reverse path filter on the primary interface is set to loose
.
AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG
Type: Boolean as a String
Default: false
Specifies that your pods may use subnets and security groups that are independent of your worker node's VPC configuration.By default, pods share the same subnet and security groups as the worker node's primary interface. Setting this variableto true
causes ipamd
to use the security groups and VPC subnet in a worker node's ENIConfig
for elastic network interfaceallocation. You must create an ENIConfig
custom resource for each subnet that your pods will reside in, and then annotate orlabel each worker node to use a specific ENIConfig
(multiple worker nodes can be annotated or labelled with the same ENIConfig
).Worker nodes can only be annotated with a single ENIConfig
at a time, and the subnet in the ENIConfig
must belong to thesame Availability Zone that the worker node resides in.For more information, see CNI Custom Networkingin the Amazon EKS User Guide.
ENI_CONFIG_ANNOTATION_DEF
Type: String
Default: k8s.amazonaws.com/eniConfig
Specifies node annotation key name. This should be used when AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG=true
. Annotation valuewill be used to set ENIConfig
name. Note that annotations take precedence over labels.
ENI_CONFIG_LABEL_DEF
Type: String
Default: k8s.amazonaws.com/eniConfig
Specifies node label key name. This should be used when AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG=true
. Label value will be usedto set ENIConfig
name. Note that annotations will take precedence over labels. To use labels ensure annotation with keyk8s.amazonaws.com/eniConfig
or defined key (in ENI_CONFIG_ANNOTATION_DEF
) is not set on the node.To select an ENIConfig
based upon availability zone set this to failure-domain.beta.kubernetes.io/zone
and create anENIConfig
custom resource for each availability zone (e.g. us-east-1a
).
AWS_VPC_ENI_MTU
(v1.6.0+)Type: Integer as a String
Default: 9001
Used to configure the MTU size for attached ENIs. The valid range is from 576
to 9001
.
AWS_VPC_K8S_CNI_EXTERNALSNAT
Type: Boolean as a String
Default: false
Specifies whether an external NAT gateway should be used to provide SNAT of secondary ENI IP addresses. If set to true
, theSNAT iptables
rule and off-VPC IP rule are not applied, and these rules are removed if they have already been applied.Disable SNAT if you need to allow inbound communication to your pods from external VPNs, direct connections, and external VPCs,and your pods do not need to access the Internet directly via an Internet Gateway. However, your nodes must be running in aprivate subnet and connected to the internet through an AWS NAT Gateway or another external NAT device.
AWS_VPC_K8S_CNI_RANDOMIZESNAT
Type: String
Default: prng
Valid Values: hashrandom
, prng
, none
Specifies whether the SNAT iptables
rule should randomize the outgoing ports for connections. This setting takes effect whenAWS_VPC_K8S_CNI_EXTERNALSNAT=false
, which is the default setting. The default setting for AWS_VPC_K8S_CNI_RANDOMIZESNAT
isprng
, meaning that --random-fully
will be added to the SNAT iptables
rule. For old versions of iptables
that do notsupport --random-fully
this option will fall back to --random
. To disable random port allocation, if you for examplerely on sequential port allocation for outgoing connections set it to none
.
Note: Any options other than none
will cause outbound connections to be assigned a source port that is not necessarilypart of the ephemeral port range set at the OS level (/proc/sys/net/ipv4/ip_local_port_range
). This is relevant for anycustomers that might have NACLs restricting traffic based on the port range found in ip_local_port_range
.
AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS
(v1.6.0+)Type: String
Default: empty
Specify a comma separated list of IPv4 CIDRs to exclude from SNAT. For every item in the list an iptables
rule and off-VPCIP rule will be applied. If an item is not a valid ipv4 range it will be skipped. This should be used when AWS_VPC_K8S_CNI_EXTERNALSNAT=false
.
WARM_ENI_TARGET
Type: Integer as a String
Default: 1
Specifies the number of free elastic network interfaces (and all of their available IP addresses) that the ipamd
daemon shouldattempt to keep available for pod assignment on the node. By default, ipamd
attempts to keep 1 elastic network interface and allof its IP addresses available for pod assignment. The number of IP addresses per network interface varies by instance type. For moreinformation, see IP Addresses Per Network Interface Per Instance Typein the Amazon EC2 User Guide for Linux Instances.
For example, an m4.4xlarge
launches with 1 network interface and 30 IP addresses. If 5 pods are placed on the node and 5 free IPaddresses are removed from the IP address warm pool, then ipamd
attempts to allocate more interfaces until WARM_ENI_TARGET
freeinterfaces are available on the node.If WARM_IP_TARGET
is set, then this environment variable is ignored and the WARM_IP_TARGET
behavior is used instead.
WARM_IP_TARGET
Type: Integer
Default: None
Specifies the number of free IP addresses that the ipamd
daemon should attempt to keep available for pod assignment on the node. Setting this to a non-positive value is same as setting this to 0 or not setting the variable.With ENABLE_PREFIX_DELEGATION
set to true
then ipamd
daemon will check if the existing (/28) prefixes are enough to maintain theWARM_IP_TARGET
if it is not sufficient then more prefixes will be attached.
For example,
WARM_IP_TARGET
is set to 5, then ipamd
attempts to keep 5 free IP addresses available at all times. If theelastic network interfaces on the node are unable to provide these free addresses, ipamd
attempts to allocate more interfacesuntil WARM_IP_TARGET
free IP addresses are available.ENABLE_PREFIX_DELEGATION
set to true
and WARM_IP_TARGET
is 16. Initially 1 (/28) prefix is sufficient but once a single pod is assigned IP thenremaining free IPs are 15 hence IPAMD will allocate 1 more prefix to achieve 16 WARM_IP_TARGET
NOTE! Avoid this setting for large clusters, or if the cluster has high pod churn. Setting it will cause additional calls to theEC2 API and that might cause throttling of the requests. It is strongly suggested to set MINIMUM_IP_TARGET
when using WARM_IP_TARGET
.
If both WARM_IP_TARGET
and MINIMUM_IP_TARGET
are set, ipamd
will attempt to meet both constraints.This environment variable overrides WARM_ENI_TARGET
behavior. For a detailed explanation, seeWARM_ENI_TARGET
, WARM_IP_TARGET
and MINIMUM_IP_TARGET
.
If ENABLE_PREFIX_DELEGATION
set to true
and WARM_IP_TARGET
overrides WARM_PREFIX_TARGET
behavior. For a detailed explanation, seeWARM_PREFIX_TARGET
, WARM_IP_TARGET
and MINIMUM_IP_TARGET
.
MINIMUM_IP_TARGET
(v1.6.0+)Type: Integer
Default: None
Specifies the number of total IP addresses that the ipamd
daemon should attempt to allocate for pod assignment on the node.MINIMUM_IP_TARGET
behaves identically to WARM_IP_TARGET
except that instead of setting a target number of free IPaddresses to keep available at all times, it sets a target number for a floor on how many total IP addresses are allocated. Setting to anon-positive value is same as setting this to 0 or not setting the variable.
MINIMUM_IP_TARGET
is for pre-scaling, WARM_IP_TARGET
is for dynamic scaling. For example, suppose a cluster has anexpected pod density of approximately 30 pods per node. If WARM_IP_TARGET
is set to 30 to ensure there are enough IPsallocated up front by the CNI, then 30 pods are deployed to the node, the CNI will allocate an additional 30 IPs, fora total of 60, accelerating IP exhaustion in the relevant subnets. If instead MINIMUM_IP_TARGET
is set to 30 andWARM_IP_TARGET
to 2, after the 30 pods are deployed the CNI would allocate an additional 2 IPs. This still provideselasticity, but uses roughly half as many IPs as using WARM_IP_TARGET alone (32 IPs vs 60 IPs).
This also improves reliability of the EKS cluster by reducing the number of calls necessary to allocate or deallocateprivate IPs, which may be throttled, especially at scaling-related times.
MAX_ENI
Type: Integer
Default: None
Specifies the maximum number of ENIs that will be attached to the node. When MAX_ENI
is unset or 0 (or lower), the settingis not used, and the maximum number of ENIs is always equal to the maximum number for the instance type in question. Even whenMAX_ENI
is a positive number, it is limited by the maximum number for the instance type.
AWS_VPC_K8S_CNI_LOGLEVEL
Type: String
Default: DEBUG
Valid Values: DEBUG
, INFO
, WARN
, ERROR
, FATAL
. (Not case sensitive)
Specifies the loglevel for ipamd
.
AWS_VPC_K8S_CNI_LOG_FILE
Type: String
Default: /host/var/log/aws-routed-eni/ipamd.log
Valid Values: stdout
or a file path
Specifies where to write the logging output of ipamd
. Either to stdout or to override the default file (i.e., /var/log/aws-routed-eni/ipamd.log
).
AWS_VPC_K8S_PLUGIN_LOG_FILE
Type: String
Default: /var/log/aws-routed-eni/plugin.log
Valid Values: stderr
or a file path
Specifies where to write the logging output for aws-cni
plugin. Either to stderr
or to override the default file (i.e., /var/log/aws-routed-eni/plugin.log
).Stdout
cannot be supported for plugin log, please refer to #1248 for more details.
Note: If chaining an external plugin (i.e Cilium) that does not provide a pluginLogFile
in its config file, the CNI plugin will by default write to os.Stderr
. The output of cmdAdd
are available in the Kubelet logs.
AWS_VPC_K8S_PLUGIN_LOG_LEVEL
Type: String
Default: DEBUG
Valid Values: DEBUG
, INFO
, WARN
, ERROR
, FATAL
. (Not case sensitive)
Specifies the loglevel for aws-cni
plugin.
INTROSPECTION_BIND_ADDRESS
Type: String
Default: 127.0.0.1:61679
Specifies the bind address for the introspection endpoint.
A Unix Domain Socket can be specified with the unix:
prefix before the socket path.
DISABLE_INTROSPECTION
Type: Boolean as a String
Default: false
Specifies whether introspection endpoints are disabled on a worker node. Setting this to true
will reduce the debugginginformation we can get from the node when running the aws-cni-support.sh
script.
DISABLE_METRICS
Type: Boolean as a String
Default: false
Specifies whether the prometheus metrics endpoint is disabled or not for ipamd. By default metrics are publishedon :61678/metrics
.
AWS_VPC_K8S_CNI_VETHPREFIX
Type: String
Default: eni
Specifies the veth prefix used to generate the host-side veth device name for the CNI. The prefix can be at most 4 characters long. The prefixes eth
, vlan
and lo
are reserved by the CNI plugin and cannot be specified. We recommend using prefix name not shared by any other network interfaces on the worker node instance.
ADDITIONAL_ENI_TAGS
(v1.6.0+)Type: String
Default: {}
Example values: {"tag_key": "tag_val"}
Metadata applied to ENI help you categorize and organize your resources for billing or other purposes. Each tag consists of acustom-defined key and an optional value. Tag keys can have a maximum character length of 128 characters. Tag values can havea maximum length of 256 characters. These tags will be added to all ENIs on the host.
Important: Custom tags should not contain k8s.amazonaws.com
prefix as it is reserved. If the tag has k8s.amazonaws.com
string, tag addition will ignored.
AWS_VPC_K8S_CNI_CONFIGURE_RPFILTER
Type: Boolean as a String
Default: true
Specifies whether ipamd should configure rp filter for primary interface. Setting this to false
will require rp filter to be configured through init container
CLUSTER_NAME
Type: String
Default: ""
Specifies the cluster name to tag allocated ENIs with. See the "Cluster Name tag" section below.
ENABLE_POD_ENI
(v1.7.0+)Type: Boolean as a String
Default: false
To enable security groups for pods you need to have at least an EKS 1.17 eks.3 cluster.
Setting ENABLE_POD_ENI
to true
will allow IPAMD to add the vpc.amazonaws.com/has-trunk-attached
label to the node if the instance has capacity to attach an additional ENI.
The label notifies vpc-resource-controller (https://github.com/aws/amazon-vpc-resource-controller-k8s) to attach a Trunk ENI to the instance. The label value is initially set to false
and is marked to true
by IPAMD when vpc-resource-controller attaches a Trunk ENI to the instance. However, there might be cases where the label value will remain false
if the instance doesn't support ENI Trunking.
Once enabled the VPC resource controller will then advertise branch network interfaces as extended resources on these nodes in your cluster. Branch interface capacity is additive to existing instance type limits for secondary IP addresses and prefixes. For example, a c5.4xlarge can continue to have up to 234 secondary IP addresses or 234 /28 prefixes assigned to standard network interfaces and up to 54 branch network interfaces. Each branch network interface only receives a single primary IP address and this IP address will be allocated to pods with security group(branch ENI pods).
Any of the WARM targets do not impact the scale of the branch ENI pods so you will have to set the WARM_{ENI/IP/PREFIX}_TARGET based on the number of non-branch ENI pods. If you are having the cluster mostly using pods with security group consider setting WARM_IP_TARGET to a very low value instead of default WARM_ENI_TARGET or WARM_PREFIX_TARGET to reduce wastage of IPs/ENIs.
NOTE! Toggling ENABLE_POD_ENI
from true
to false
will not detach the Trunk ENI from instance. To delete/detach the Trunk ENI from instance, you need recycle the instance.
DISABLE_TCP_EARLY_DEMUX
(v1.7.3+)Type: Boolean as a String
Default: false
If ENABLE_POD_ENI
is set to true
, in order for the kubelet to connect via TCP (for liveness or readiness probes)to pods that are using per pod security groups, DISABLE_TCP_EARLY_DEMUX
should be set to true
for amazon-k8s-cni-init
container under initcontainers
. This will increase the local TCP connection latency slightly.Details on why this is needed can be found in this #1212 comment.To use this setting, a Linux kernel version of at least 4.6 is needed on the worker node.
You can use the below command to enable DISABLE_TCP_EARLY_DEMUX
to true
-
kubectl patch daemonset aws-node -n kube-system -p '{"spec": {"template": {"spec": {"initContainers": [{"env":[{"name":"DISABLE_TCP_EARLY_DEMUX","value":"true"}],"name":"aws-vpc-cni-init"}]}}}}'
ENABLE_PREFIX_DELEGATION
(v1.9.0+)Type: Boolean as a String
Default: false
To enable IPv4 prefix delegation on nitro instances. Setting ENABLE_PREFIX_DELEGATION
to true
will start allocating a /28 prefixinstead of a secondary IP in the ENIs subnet. The total number of prefixes and private IP addresses will be less than thelimit on private IPs allowed by your instance. Setting or resetting of ENABLE_PREFIX_DELEGATION
while pods are running or if ENIs are attached is supported and the new pods allocated will get IPs based on the mode of IPAMD but the max pods of kubelet should be updated which would need either kubelet restart or node recycle.
Custom networking and Security group per pods are supported with this feature.
Setting ENABLE_PREFIX_DELEGATION to true will not increase the density of branch ENI pods. The limit on number of branch network interfaces per instance type will remain the same - https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html#supported-instance-types. Each branch network will be allocated a primary IP and this IP will be allocated for the branch ENI pods.
WARM_PREFIX_TARGET
(v1.9.0+)Type: Integer
Default: None
Specifies the number of free IPv4(/28) prefixes that the ipamd
daemon should attempt to keep available for pod assignment on the node. Setting to a non-positive value is same as setting this to 0 or not setting the variable.This environment variable works when ENABLE_PREFIX_DELEGATION
is set to true
and is overriden when WARM_IP_TARGET
and MINIMUM_IP_TARGET
are configured.
DISABLE_NETWORK_RESOURCE_PROVISIONING
(v1.9.1+)Type: Boolean as a String
Default: false
Setting DISABLE_NETWORK_RESOURCE_PROVISIONING
to true
will make IPAMD to depend only on IMDS to get attached ENIs and IPs/prefixes.
ENABLE_BANDWIDTH_PLUGIN
(v1.10.0+)Type: Boolean as a String
Default: false
Setting ENABLE_BANDWIDTH_PLUGIN
to true
will update 10-aws.conflist
to include upstream bandwidth plugin as a chained plugin.
ANNOTATE_POD_IP
(v1.9.3+)Type: Boolean as a String
Default: false
Setting ANNOTATE_POD_IP
to true
will allow IPAMD to add an annotation vpc.amazonaws.com/pod-ips
to the pod with pod IP.
There is a known issue with kubelet taking time to update Pod.Status.PodIP
leading to calico being blocked on programming the policy. Setting ANNOTATE_POD_IP
to true
will enable AWS VPC CNI plugin to add Pod IP as an annotation to the pod spec to address this race condition.
To annotate the pod with pod IP, you will have to add "patch" permission for pods resource in aws-node clusterrole. You can use the below command -
cat << EOF > append.yaml
- apiGroups:
- ""
resources:
- pods
verbs:
- patch
EOF
kubectl apply -f <(cat <(kubectl get clusterrole aws-node -o yaml) append.yaml)
This plugin interacts with the following tags on ENIs:
cluster.k8s.amazonaws.com/name
node.k8s.amazonaws.com/instance_id
node.k8s.amazonaws.com/no_manage
The tag cluster.k8s.amazonaws.com/name
will be set to the cluster name of theaws-node daemonset which created the ENI.
The tag node.k8s.amazonaws.com/instance_id
will be set to the instance ID ofthe aws-node instance that allocated this ENI.
The tag node.k8s.amazonaws.com/no_manage
is read by the aws-node daemonset todetermine whether an ENI attached to the machine should not be configured orused for private IPs.
This tag is not set by the cni plugin itself, but rather may be set by a userto indicate that an ENI is intended for host networking pods, or for some otherprocess unrelated to Kubernetes.
Note: Attaching an ENI with the no_manage
tag will result in an incorrectvalue for the Kubelet's --max-pods
configuration option. Consider alsoupdating the MAX_ENI
and --max-pods
configuration options on this pluginand the kubelet respectively if you are making use of this tag.
Currently IPAMD uses dockershim socket to pull pod sandboxes information upon its starting. The runtime can be set to others.The mountPath should be changed to /var/run/cri.sock
and hostPath should be pointed to the wanted socket, such as/var/run/containerd/containerd.sock
for containerd. If using helm chart, the flag --set cri.hostPath.path=/var/run/containerd/containerd.sock
can set the paths for you.
Note: When using other container runtime instead of dockershim, make sure also setting kubelet in instances.
L-IPAMD
(aws-node daemonSet) running on every worker node requires access to kubernetes API server. If it can not reachkubernetes API server, ipamd will exit and CNI will not be able to get any IP address for Pods. Here is a way to confirm ifaws-node
has access to the kubernetes API server.
# find out kubernetes service IP, e.g. 10.0.0.1
kubectl get svc kubernetes
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 29d
# ssh into worker node, check if worker node can reach API server
telnet 10.0.0.1 443
Trying 10.0.0.1...
Connected to 10.0.0.1.
Escape character is '^]'. <-------- kubernetes API server is reachable
If you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow theinstructions here or email AWS security directly.
前言 kubeadm1.13达到了生产可用,利用kubeadm部署一个高可用集群简单不少。但是竟然部署在aws上,就要启用cloud-provider=aws,深度结合iaas层资源。主要是利用aws的elb和ebs等。相关的资料还是比较少的,已经有的一些文档要不是out了,要不就是内容不全,还有很多文章只是弄了一个demo的水平,完全没法上生产,部署过程破费周折。 组件版本和集群环境 集群组件和
背景: 在集群搭建之前,需要根据集群的部署环境的限制和应用需求对CNI插件进行选择 1.简介: 容器网络接口标准:Container Network Interface CNI插件:CNI接口标准的实现。常见插件有:flannel、Calico、Weave Net、midonet、Contiv和公有云厂商提供的CNI插件如 Amazon VPC、Aliyun Terway kubelet:根据C
使用kind部署实验用k8s集群,部署nginx服务挂载s3目录实例 需求 需要在内网访问S3目录,且S3不能开启公网访问。 解决方案 1.使用VPC Endpoint服务,内网与VPC打通,实现通过VPC Endpoint访问S3。 遇到的问题:可以访问单个文件,但只支持以xml格式列出目录,不支持html格式。 2.部署nginx服务,使用s3fs挂载S3目录,再以nginx_autoinde
如何排查 Amazon EKS 的 kubelet 或 CNI 插件问题? 上次更新时间:2020 年 9 月 11 日 我想要解决 Amazon Elastic Kubernetes Service (Amazon EKS) 的 kubelet 或 CNI 插件存在问题。 简短描述 要使用您的 CNI 插件运行 IP 地址并将其分配到您工作线程节点上的 pod,您必须具备以下条件: AWS Id
CNI还支持Plugin Chains,即指定一个插件列表,由Runtime依次执行每个插件。这对支持portmapping、vm等非常有帮助。 Network Configuration Lists CNI SPEC支持指定网络配置列表,包含多个网络插件,由Runtime依次执行。注意 ADD操作,按顺序依次调用每个插件;而DEL操作调用顺序相反 ADD操作,除最后一个插件,前面每个插件需要增加
CNI还支持Plugin Chains,即指定一个插件列表,由Runtime依次执行每个插件。这对支持portmapping、vm等非常有帮助。 Network Configuration Lists CNI SPEC支持指定网络配置列表,包含多个网络插件,由Runtime依次执行。注意 ADD操作,按顺序依次调用每个插件;而DEL操作调用顺序相反 ADD操作,除最后一个插件,前面每个插件需要增加
CNI - the Container Network Interface What is CNI? CNI (Container Network Interface), a Cloud Native Computing Foundation project, consists of a specification and libraries for writing plugins to conf
专有网络VPC是一块逻辑隔离的网络空间。 专有网络VPC(Virtual Private Cloud)是一块逻辑隔离的网络空间。 VPC网络:VPC是一块逻辑隔离的网络空间,在VPC内,用户可以自由定义网段划分、IP地址。在不同VPC上可以使用相同的内网IP。 经典网络:所有用户共享网络资源池,即宿主机、物理机以及虚拟机等共享网络资源池,相同的内网IP无法分配给不同用户。 入口:在云管平台单击左上
Kuryr 是 OpenStack Neutron 的子项目,其主要目标是透过该项目来集成 OpenStack 与 Kubernetes 的网络。该项目在 Kubernetes 中实作了原生 Neutron-based 的网络,因此使用 Kuryr-Kubernetes 可以让 OpenStack VM 与 Kubernetes Pods 能够选择在同一个子网络上运作,并且能够使用 Neutron
OpenContrail是Juniper推出的开源网络虚拟化平台,其商业版本为Contrail。 架构 OpenContrail主要由控制器和vRouter组成: 控制器提供虚拟网络的配置、控制和分析功能 vRouter提供分布式路由,负责虚拟路由器、虚拟网络的建立以及数据转发 vRouter支持三种模式 Kernel vRouter:类似于ovs内核模块 DPDK vRouter:类似于ovs-