Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: bump coredns to v1.11.3 / aws-ccm to v1.31.0 #86

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions templates/addons/coredns.yaml.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Source from: https://github.com/coredns/deployment/blob/master/kubernetes/coredns.yaml.sed
# Source from: https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/coredns/coredns.yaml.sed
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -106,9 +106,10 @@ spec:
metadata:
labels:
k8s-app: kube-dns
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
priorityClassName: system-cluster-critical
serviceAccountName: coredns
tolerations:
Expand Down
16 changes: 14 additions & 2 deletions templates/cloud-provider/aws-ccm.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ rules:
- serviceaccounts
verbs:
- create
- get
- list
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -90,6 +88,18 @@ rules:
- serviceaccounts/token
verbs:
- create
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -148,6 +158,8 @@ spec:
resources:
requests:
cpu: 200m
# We speculatively set hostNetwork to true for the AWS CCM to connect to the AWS API
# https://shazi.info/amazon-eks-pod-%E5%AD%98%E5%8F%96-imdsv2-%E7%95%B0%E5%B8%B8%E7%B7%A9%E6%85%A2%E8%99%95%E7%90%86/
hostNetwork: true
nodeSelector:
node-role.kubernetes.io/master: ""
Expand Down
4 changes: 2 additions & 2 deletions variables_defaults.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ locals {
}
coredns = {
repo = "coredns/coredns"
tag = "1.11.1"
tag = "1.11.3"
}
vpc_cni = {
repo = "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni"
Expand Down Expand Up @@ -58,7 +58,7 @@ locals {
}
cloud_controller_manager = {
repo = "registry.k8s.io/provider-aws/cloud-controller-manager"
tag = "v1.27.1"
tag = "v1.31.0"
}
}, var.containers)

Expand Down