Skip to content

Commit

Permalink
Update to Kubernetes 1.17.3, Calico 3.12 and bump addons
Browse files Browse the repository at this point in the history
  • Loading branch information
scholzj committed Mar 3, 2020
1 parent bfb23f3 commit acb7666
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ AWS Kubernetes is a Kubernetes cluster deployed using [Kubeadm](https://kubernet

## Updates

* *3.3.2020* Update to Kubernetes 1.17.3, update addons and Calico SDN
* *18.12.2019* Update to Kubernetes 1.17.0
* *24.11.2019* Update to Kubernetes 1.16.3
* *27.10.2019* Update to Kubernetes 1.16.2
Expand Down
30 changes: 20 additions & 10 deletions scripts/calico.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# Source: https://docs.projectcalico.org/v3.9/manifests/calico.yaml
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
Expand All @@ -21,7 +20,7 @@ data:
cni_network_config: |-
{
"name": "k8s-pod-network",
"cniVersion": "0.3.0",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "calico",
Expand All @@ -43,6 +42,10 @@ data:
"type": "portmap",
"snat": true,
"capabilities": {"portMappings": true}
},
{
"type": "bandwidth",
"capabilities": {"bandwidth": true}
}
]
}
Expand All @@ -52,7 +55,7 @@ data:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: felixconfigurations.crd.projectcalico.org
name: felixconfigurations.crd.projectcalico.org
spec:
scope: Cluster
group: crd.projectcalico.org
Expand Down Expand Up @@ -496,7 +499,7 @@ spec:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
hostNetwork: true
tolerations:
# Make sure calico-node gets scheduled on all nodes.
Expand All @@ -517,7 +520,7 @@ spec:
# It can be deleted if this is a fresh installation, or if you have already
# upgraded to use calico-ipam.
- name: upgrade-ipam
image: calico/cni:v3.9.0
image: calico/cni:v3.12.0
command: ["/opt/cni/bin/calico-ipam", "-upgrade"]
env:
- name: KUBERNETES_NODE_NAME
Expand All @@ -534,10 +537,12 @@ spec:
name: host-local-net-dir
- mountPath: /host/opt/cni/bin
name: cni-bin-dir
securityContext:
privileged: true
# This container installs the CNI binaries
# and CNI network config file on each node.
- name: install-cni
image: calico/cni:v3.9.0
image: calico/cni:v3.12.0
command: ["/install-cni.sh"]
env:
# Name of the CNI config file to create.
Expand Down Expand Up @@ -568,19 +573,23 @@ spec:
name: cni-bin-dir
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
securityContext:
privileged: true
# Adds a Flex Volume Driver that creates a per-pod Unix Domain Socket to allow Dikastes
# to communicate with Felix over the Policy Sync API.
- name: flexvol-driver
image: calico/pod2daemon-flexvol:v3.9.0
image: calico/pod2daemon-flexvol:v3.12.0
volumeMounts:
- name: flexvol-driver-host
mountPath: /host/driver
securityContext:
privileged: true
containers:
# Runs calico-node container on each Kubernetes node. This
# container programs network policy and routes on each
# host.
- name: calico-node
image: calico/node:v3.9.0
image: calico/node:v3.12.0
env:
# Use Kubernetes API as the backing datastore.
- name: DATASTORE_TYPE
Expand Down Expand Up @@ -643,6 +652,7 @@ spec:
command:
- /bin/calico-node
- -felix-live
- -bird-live
periodSeconds: 10
initialDelaySeconds: 10
failureThreshold: 6
Expand Down Expand Up @@ -743,7 +753,7 @@ spec:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
nodeSelector:
beta.kubernetes.io/os: linux
kubernetes.io/os: linux
tolerations:
# Mark the pod as a critical add-on for rescheduling.
- key: CriticalAddonsOnly
Expand All @@ -754,7 +764,7 @@ spec:
priorityClassName: system-cluster-critical
containers:
- name: calico-kube-controllers
image: calico/kube-controllers:v3.9.0
image: calico/kube-controllers:v3.12.0
env:
# Choose which controllers to run.
- name: ENABLED_CONTROLLERS
Expand Down
2 changes: 1 addition & 1 deletion scripts/init-aws-kubernetes-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export ASG_MAX_NODES="${asg_max_nodes}"
export AWS_REGION=${aws_region}
export AWS_SUBNETS="${aws_subnets}"
export ADDONS="${addons}"
export KUBERNETES_VERSION="1.17.0"
export KUBERNETES_VERSION="1.17.3"

# Set this only after setting the defaults
set -o nounset
Expand Down
2 changes: 1 addition & 1 deletion scripts/init-aws-kubernetes-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -o pipefail
export KUBEADM_TOKEN=${kubeadm_token}
export MASTER_IP=${master_private_ip}
export DNS_NAME=${dns_name}
export KUBERNETES_VERSION="1.17.0"
export KUBERNETES_VERSION="1.17.3"

# Set this only after setting the defaults
set -o nounset
Expand Down

0 comments on commit acb7666

Please sign in to comment.