Skip to content

Commit

Permalink
Merge pull request kubernetes#3162 from tmjd/update-calico-2-4-0
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Update to Calico 2.4.1

- Switch Calico images to be pulled from quay.io

Addresses kubernetes#3161
  • Loading branch information
Kubernetes Submit Queue authored Aug 17, 2017
2 parents e3d6b15 + 226e26f commit 429004f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ data:
http://etcd-{{ $member.Name }}.internal.{{ ClusterName }}:4001
{{- end }}"

# True enables BGP networking, false tells Calico to enforce
# policy only, using native networking.
enable_bgp: "true"
# Configure the Calico backend to use.
calico_backend: "bird"

# The CNI network configuration to install on each node.
cni_network_config: |-
Expand Down Expand Up @@ -129,7 +128,7 @@ spec:
# container programs network policy and routes on each
# host.
- name: calico-node
image: calico/node:v1.2.1
image: quay.io/calico/node:v2.4.0
resources:
requests:
cpu: 10m
Expand All @@ -141,16 +140,19 @@ spec:
name: calico-config
key: etcd_endpoints
# Enable BGP. Disable to enforce policy only.
- name: CALICO_NETWORKING
- name: CALICO_NETWORKING_BACKEND
valueFrom:
configMapKeyRef:
name: calico-config
key: enable_bgp
key: calico_backend
# Configure the IP Pool from which Pod IPs will be chosen.
- name: CALICO_IPV4POOL_CIDR
value: "{{ .KubeControllerManager.ClusterCIDR }}"
- name: CALICO_IPV4POOL_IPIP
value: "{{- if and (eq .CloudProvider "aws") (.Networking.Calico.CrossSubnet) -}}cross-subnet{{- else -}}always{{- end -}}"
# Cluster type to identify the deployment type
- name: CLUSTER_TYPE
value: "kops,bgp"
# Disable file logging so `kubectl logs` works.
- name: CALICO_DISABLE_FILE_LOGGING
value: "true"
Expand All @@ -169,7 +171,7 @@ spec:
# This container installs the Calico CNI binaries
# and CNI network config file on each node.
- name: install-cni
image: calico/cni:v1.8.3
image: quay.io/calico/cni:v1.10.0
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -245,7 +247,7 @@ spec:
operator: Exists
containers:
- name: calico-policy-controller
image: calico/kube-policy-controller:v0.6.0
image: quay.io/calico/kube-policy-controller:v0.7.0
resources:
requests:
cpu: 10m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ data:
http://etcd-{{ $member.Name }}.internal.{{ ClusterName }}:4001
{{- end }}"

# True enables BGP networking, false tells Calico to enforce
# policy only, using native networking.
enable_bgp: "true"
# Configure the Calico backend to use.
calico_backend: "bird"

# The CNI network configuration to install on each node.
cni_network_config: |-
Expand Down Expand Up @@ -70,7 +69,7 @@ spec:
# container programs network policy and routes on each
# host.
- name: calico-node
image: calico/node:v1.1.3
image: quay.io/calico/node:v2.4.0
resources:
requests:
cpu: 10m
Expand All @@ -81,12 +80,15 @@ spec:
configMapKeyRef:
name: calico-config
key: etcd_endpoints
# Enable BGP. Disable to enforce policy only.
- name: CALICO_NETWORKING
# Choose the backend to use.
- name: CALICO_NETWORKING_BACKEND
valueFrom:
configMapKeyRef:
name: calico-config
key: enable_bgp
key: calico_backend
# Cluster type to identify the deployment type
- name: CLUSTER_TYPE
value: "kops,bgp"
# Disable file logging so `kubectl logs` works.
- name: CALICO_DISABLE_FILE_LOGGING
value: "true"
Expand All @@ -110,7 +112,7 @@ spec:
# This container installs the Calico CNI binaries
# and CNI network config file on each node.
- name: install-cni
image: calico/cni:v1.8.0
image: quay.io/calico/cni:v1.10.0
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -183,7 +185,7 @@ spec:
hostNetwork: true
containers:
- name: calico-policy-controller
image: calico/kube-policy-controller:v0.5.4
image: quay.io/calico/kube-policy-controller:v0.7.0
resources:
requests:
cpu: 10m
Expand Down
3 changes: 1 addition & 2 deletions upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,7 @@ func (b *BootstrapChannelBuilder) buildManifest() (*channelsapi.Addons, map[stri

if b.cluster.Spec.Networking.Calico != nil {
key := "networking.projectcalico.org"
// 2.1.2-kops.1 = 2.1.1 with CIDR change
version := "2.1.2-kops.1"
version := "2.4.1"

{
location := key + "/pre-k8s-1.6.yaml"
Expand Down

0 comments on commit 429004f

Please sign in to comment.