mirror of https://github.com/kubernetes/kops.git
Merge pull request #2768 from ottoyiu/calico_cidr
Update calico to use the correct CIDR for pods
This commit is contained in:
commit
24c0bc19ed
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue