From 6f958d7577270c3c99f9d40aef7ee35940ceea18 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 1 Jul 2018 19:41:57 -0700 Subject: [PATCH] Replace kube-dns with CoreDNS * Add system:coredns ClusterRole and binding * Annotate CoreDNS for Prometheus metrics scraping * Remove kube-dns deployment, service, & service account * https://github.com/poseidon/terraform-render-bootkube/pull/71 * https://kubernetes.io/blog/2018/06/27/kubernetes-1.11-release-announcement/ --- CHANGES.md | 2 ++ README.md | 2 +- aws/container-linux/kubernetes/bootkube.tf | 2 +- aws/container-linux/kubernetes/variables.tf | 4 ++-- aws/container-linux/kubernetes/workers/variables.tf | 4 ++-- aws/fedora-atomic/kubernetes/bootkube.tf | 2 +- aws/fedora-atomic/kubernetes/variables.tf | 4 ++-- aws/fedora-atomic/kubernetes/workers/variables.tf | 4 ++-- bare-metal/container-linux/kubernetes/bootkube.tf | 2 +- bare-metal/container-linux/kubernetes/variables.tf | 4 ++-- bare-metal/fedora-atomic/kubernetes/bootkube.tf | 2 +- bare-metal/fedora-atomic/kubernetes/variables.tf | 4 ++-- digital-ocean/container-linux/kubernetes/bootkube.tf | 2 +- digital-ocean/container-linux/kubernetes/variables.tf | 4 ++-- digital-ocean/fedora-atomic/kubernetes/bootkube.tf | 2 +- digital-ocean/fedora-atomic/kubernetes/variables.tf | 4 ++-- docs/architecture/concepts.md | 2 +- docs/atomic/aws.md | 6 +++--- docs/atomic/bare-metal.md | 6 +++--- docs/atomic/digital-ocean.md | 6 +++--- docs/atomic/google-cloud.md | 6 +++--- docs/cl/aws.md | 6 +++--- docs/cl/bare-metal.md | 6 +++--- docs/cl/digital-ocean.md | 6 +++--- docs/cl/google-cloud.md | 6 +++--- docs/index.md | 2 +- docs/topics/hardware.md | 4 ++-- docs/topics/maintenance.md | 4 ++-- google-cloud/container-linux/kubernetes/bootkube.tf | 2 +- google-cloud/container-linux/kubernetes/variables.tf | 4 ++-- .../container-linux/kubernetes/workers/variables.tf | 4 ++-- google-cloud/fedora-atomic/kubernetes/bootkube.tf | 2 +- google-cloud/fedora-atomic/kubernetes/variables.tf | 4 ++-- google-cloud/fedora-atomic/kubernetes/workers/variables.tf | 4 ++-- 34 files changed, 65 insertions(+), 63 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0fbd4386..57d7a934 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,8 @@ Notable changes between versions. * Kubernetes [v1.11.0](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.11.md#v1110) * Force apiserver to stop listening on `127.0.0.1:8080` +* Replace `kube-dns` with [CoreDNS](https://coredns.io/) ([#261](https://github.com/poseidon/typhoon/pull/261)) + * Edit the `coredns` ConfigMap to [customize](https://coredns.io/plugins/) #### AWS diff --git a/README.md b/README.md index 58475ce6..87d4f181 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,10 @@ NAMESPACE NAME READY STATUS RESTART kube-system calico-node-1cs8z 2/2 Running 0 6m kube-system calico-node-d1l5b 2/2 Running 0 6m kube-system calico-node-sp9ps 2/2 Running 0 6m +kube-system coredns-1187388186-zj5dl 1/1 Running 0 6m kube-system kube-apiserver-zppls 1/1 Running 0 6m kube-system kube-controller-manager-3271970485-gh9kt 1/1 Running 0 6m kube-system kube-controller-manager-3271970485-h90v8 1/1 Running 1 6m -kube-system kube-dns-1187388186-zj5dl 3/3 Running 0 6m kube-system kube-proxy-117v6 1/1 Running 0 6m kube-system kube-proxy-9886n 1/1 Running 0 6m kube-system kube-proxy-njn47 1/1 Running 0 6m diff --git a/aws/container-linux/kubernetes/bootkube.tf b/aws/container-linux/kubernetes/bootkube.tf index 1b14bc5d..1a80c2b6 100644 --- a/aws/container-linux/kubernetes/bootkube.tf +++ b/aws/container-linux/kubernetes/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=eb2dfa64de3f6c31bf5d2a8ca8912223ac1aef05" + source = "git::https://github.com/poseidon/terraform-render-bootkube.git?ref=81ba300e712e116c9ea9470ccdce7859fecc76b6" cluster_name = "${var.cluster_name}" api_servers = ["${format("%s.%s", var.cluster_name, var.dns_zone)}"] diff --git a/aws/container-linux/kubernetes/variables.tf b/aws/container-linux/kubernetes/variables.tf index d24c7b6b..a7d4f856 100644 --- a/aws/container-linux/kubernetes/variables.tf +++ b/aws/container-linux/kubernetes/variables.tf @@ -116,7 +116,7 @@ variable "pod_cidr" { variable "service_cidr" { description = <