Merge pull request #2768 from ottoyiu/calico_cidr

Update calico to use the correct CIDR for pods
This commit is contained in:
Chris Love 2017-07-06 14:29:18 -06:00 committed by GitHub
commit 24c0bc19ed
3 changed files with 4 additions and 3 deletions

View File

@ -146,7 +146,7 @@ spec:
key: enable_bgp
# Configure the IP Pool from which Pod IPs will be chosen.
- name: CALICO_IPV4POOL_CIDR
value: "{{ .NonMasqueradeCIDR }}"
value: "{{ .KubeControllerManager.ClusterCIDR }}"
- name: CALICO_IPV4POOL_IPIP
value: "{{- if and (eq .CloudProvider "aws") (.Networking.Calico.CrossSubnet) -}}cross-subnet{{- else -}}always{{- end -}}"
# Disable file logging so `kubectl logs` works.

View File

@ -92,7 +92,7 @@ spec:
value: "true"
# Configure the IP Pool from which Pod IPs will be chosen.
- name: CALICO_IPV4POOL_CIDR
value: "{{ .NonMasqueradeCIDR }}"
value: "{{ .KubeControllerManager.ClusterCIDR }}"
- name: CALICO_IPV4POOL_IPIP
value: "{{- if and (eq .CloudProvider "aws") (.Networking.Calico.CrossSubnet) -}}cross-subnet{{- else -}}always{{- end -}}"
# Auto-detect the BGP IP address.

View File

@ -353,7 +353,8 @@ func (b *BootstrapChannelBuilder) buildManifest() (*channelsapi.Addons, map[stri
if b.cluster.Spec.Networking.Calico != nil {
key := "networking.projectcalico.org"
version := "2.1.1"
// 2.1.2-kops.1 = 2.1.1 with CIDR change
version := "2.1.2-kops.1"
{
location := key + "/pre-k8s-1.6.yaml"