From 316f8a857c06813cc899267a4428bf5ba4088d87 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Thu, 25 Feb 2021 11:11:45 -0500 Subject: [PATCH] Bump coredns -> 1.8.3, k8s -> 1.20.2, and kind -> 0.10.0 (#246) * bump coredns, k8s, and kind Signed-off-by: Chris O'Haver --- .circleci/config.yml | 5 +++-- kubernetes/coredns.yaml.sed | 29 ++++++++++++++++++----------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f57d45..d2d5caa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,9 +21,9 @@ integrationDefaults: &integrationDefaults image: ubuntu-1604:201903-01 working_directory: ~/go/src/${CIRCLE_PROJECT_USERNAME}/deployment environment: - - K8S_VERSION: v1.18.2 + - K8S_VERSION: v1.20.2 - KUBECONFIG: /home/circleci/.kube/kind-config-kind - - KIND_VERSION: v0.8.1 + - KIND_VERSION: v0.10.0 setupKubernetes: &setupKubernetes - run: @@ -51,6 +51,7 @@ jobs: name: Run Kubernetes deployment tests command: | cd ~/go/src/${CIRCLE_PROJECT_USERNAME}/ci/test/k8sdeployment + go mod download GO111MODULE=on go test -v ./... workflows: diff --git a/kubernetes/coredns.yaml.sed b/kubernetes/coredns.yaml.sed index 18f5c7c..098d687 100644 --- a/kubernetes/coredns.yaml.sed +++ b/kubernetes/coredns.yaml.sed @@ -11,16 +11,23 @@ metadata: kubernetes.io/bootstrapping: rbac-defaults name: system:coredns rules: -- apiGroups: - - "" - resources: - - endpoints - - services - - pods - - namespaces - verbs: - - list - - watch + - apiGroups: + - "" + resources: + - endpoints + - services + - pods + - namespaces + verbs: + - list + - watch + - apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - list + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -109,7 +116,7 @@ spec: topologyKey: kubernetes.io/hostname containers: - name: coredns - image: coredns/coredns:1.8.0 + image: coredns/coredns:1.8.3 imagePullPolicy: IfNotPresent resources: limits: