From 82927f2c7bcb2fd55e19b082866513f52dba3f46 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sat, 22 Sep 2018 00:02:37 -0700 Subject: [PATCH] Update Kubernetes from v1.11.3 to v1.12.1 * Mount an empty dir for the controller-manager to work around https://github.com/kubernetes/kubernetes/issues/68973 * Update coreos/pod-checkpointer to strip affinity from checkpointed pod manifests. Kubernetes v1.12.0-rc.1 introduced a default affinity that appears on checkpointed manifests; but it prevented scheduling and checkpointed pods should not have an affinity, they're run directly by the Kubelet on the local node * https://github.com/kubernetes-incubator/bootkube/issues/1001 * https://github.com/kubernetes/kubernetes/pull/68173 --- README.md | 2 +- bootkube.tf | 2 +- cl/controller.yaml.tmpl | 2 +- workers/cl/worker.yaml.tmpl | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 61cd2c6..116c9ef 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Typhoon distributes upstream Kubernetes, architectural conventions, and cluster ## Features -* Kubernetes v1.11.3 (upstream, via [kubernetes-incubator/bootkube](https://github.com/kubernetes-incubator/bootkube)) +* Kubernetes v1.12.1 (upstream, via [kubernetes-incubator/bootkube](https://github.com/kubernetes-incubator/bootkube)) * Single or multi-master, workloads isolated on workers, [flannel](https://github.com/coreos/flannel) networking * On-cluster etcd with TLS, [RBAC](https://kubernetes.io/docs/admin/authorization/rbac/)-enabled * Ready for Ingress, Prometheus, Grafana, and other optional [addons](https://typhoon.psdn.io/addons/overview/) diff --git a/bootkube.tf b/bootkube.tf index f855e4c..a867f3f 100644 --- a/bootkube.tf +++ b/bootkube.tf @@ -1,6 +1,6 @@ # Self-hosted Kubernetes assets (kubeconfig, manifests) module "bootkube" { - source = "git::https://github.com/poseidon/terraform-render-bootkube.git?ref=2437023c1050609b749850e9b2301a6f00713680" + source = "git::https://github.com/poseidon/terraform-render-bootkube.git?ref=81f19507faabf411db9c760d55f3d03f7d78f4c9" cluster_name = "${var.cluster_name}" api_servers = ["${format("%s.%s", var.cluster_name, var.dns_zone)}"] diff --git a/cl/controller.yaml.tmpl b/cl/controller.yaml.tmpl index 085bd4e..8a8079b 100644 --- a/cl/controller.yaml.tmpl +++ b/cl/controller.yaml.tmpl @@ -122,7 +122,7 @@ storage: contents: inline: | KUBELET_IMAGE_URL=docker://k8s.gcr.io/hyperkube - KUBELET_IMAGE_TAG=v1.11.3 + KUBELET_IMAGE_TAG=v1.12.1 - path: /etc/sysctl.d/max-user-watches.conf filesystem: root contents: diff --git a/workers/cl/worker.yaml.tmpl b/workers/cl/worker.yaml.tmpl index 28c4620..a4d6404 100644 --- a/workers/cl/worker.yaml.tmpl +++ b/workers/cl/worker.yaml.tmpl @@ -92,7 +92,7 @@ storage: contents: inline: | KUBELET_IMAGE_URL=docker://k8s.gcr.io/hyperkube - KUBELET_IMAGE_TAG=v1.11.3 + KUBELET_IMAGE_TAG=v1.12.1 - path: /etc/sysctl.d/max-user-watches.conf filesystem: root contents: @@ -110,7 +110,7 @@ storage: --volume config,kind=host,source=/etc/kubernetes \ --mount volume=config,target=/etc/kubernetes \ --insecure-options=image \ - docker://k8s.gcr.io/hyperkube:v1.11.3 \ + docker://k8s.gcr.io/hyperkube:v1.12.1 \ --net=host \ --dns=host \ --exec=/kubectl -- --kubeconfig=/etc/kubernetes/kubeconfig delete node $(hostname | tr '[:upper:]' '[:lower:]')