Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/fe88889f5441a6cd06b7f4ef5ad4756f to your computer and use it in GitHub Desktop.
Save guitarrapc/fe88889f5441a6cd06b7f4ef5ad4756f to your computer and use it in GitHub Desktop.
EKS Addon Additional Configurations for CoreDNS. Do not place CoreDNS to Karpenter Managed Node. https://aws.amazon.com/jp/blogs/containers/amazon-eks-add-ons-advanced-configuration/
{
"affinity": {
"nodeAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "karpenter.sh/nodepool",
"operator": "DoesNotExist"
},
{
"key": "kubernetes.io/os",
"operator": "In",
"values": [
"linux"
]
},
{
"key": "kubernetes.io/arch",
"operator": "In",
"values": [
"amd64",
"arm64"
]
}
]
}
]
}
},
"podAntiAffinity": {
"preferredDuringSchedulingIgnoredDuringExecution": [
{
"podAffinityTerm": {
"labelSelector": {
"matchExpressions": [
{
"key": "k8s-app",
"operator": "In",
"values": [
"kube-dns"
]
}
]
},
"topologyKey": "kubernetes.io/hostname"
},
"weight": 100
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment