Cyclinder
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
8 additions and
1 deletions
-
inventory/sample/group_vars/k8s_cluster/k8s-net-calico.yml
-
roles/network_plugin/calico/defaults/main.yml
-
roles/network_plugin/calico/templates/cni-calico.conflist.j2
|
|
@ -1,5 +1,9 @@ |
|
|
|
--- |
|
|
|
# see roles/network_plugin/calico/defaults/main.yml |
|
|
|
|
|
|
|
# the default value of name |
|
|
|
calico_cni_name: k8s-pod-network |
|
|
|
|
|
|
|
## With calico it is possible to distributed routes with border routers of the datacenter. |
|
|
|
## Warning : enabling router peering will disable calico's default behavior ('node mesh'). |
|
|
|
## The subnets of each nodes will be distributed by the datacenter router |
|
|
|
|
|
@ -1,4 +1,7 @@ |
|
|
|
--- |
|
|
|
# the default value of name |
|
|
|
calico_cni_name: k8s-pod-network |
|
|
|
|
|
|
|
# Enables Internet connectivity from containers |
|
|
|
nat_outgoing: true |
|
|
|
|
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
{ |
|
|
|
"name": "cni0", |
|
|
|
"name": "{{ calico_cni_name }}", |
|
|
|
"cniVersion":"0.3.1", |
|
|
|
"plugins":[ |
|
|
|
{ |
|
|
|