-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Bottlerocket cluster-domain
support in kubernetes.settings
#5517
Comments
Can you show what the result is if you look at the userData from a Karpenter-provisioned node? Does it show the custom domain that you are trying to target? |
Of course, here it is:
I brought up a node this morning, and I can't see the |
Looks like it isn't part of the https://github.com/aws/karpenter-provider-aws/blob/main/pkg/providers/amifamily/bootstrap/bottlerocketsettings.go#L45 so we wouldn't be serializing it if you were specifying it on merge. You'd need to add it into our version of the struct so that we serialize and overlay it into TOML correctly |
cluster-domain
support in kubernetes.settings
@jonathan-innis are there any plans to provide an escape hatch or something for adding things like this as raw settings? In general karpenter seems to be missing a few fields from the latest Bottlerocket API spec for settings.kubernetes (I'm looking to add seccomp-default for example). For settings not scoped under |
Completely agree. We'd be more for auto-gen-ing it or not relying on the structured data directly and just allowing arbitrary formatting without validation. See #6259 which I just opened. |
Description
Description
Observed Behavior:
Hi folks! I have a cluster with a custom domain (
ue2.green.aws
). Nodes that are provisioned with cluster-autoscaler have the correct search list set in theresolv.conf
stanza:If I attempt to provision new nodes with Karpenter the search domains reverts back to
cluster.local
. Breaking internal DNS references.This happens when I set
settings.kubernetes.cluster-domain
to my domain or not. I have attempted to setsettings.dns.search-list
however all it does is appends my configured search list to resolv.conf resulting in something like:Taking a look at
cluster-autoscaler
provisioned nodes userData I don't see anything obvious:Expected Behavior:
The custom domain be respect for the search subdomains.
Probably related: #3166
Reproduction Steps (Please include YAML):
Provision an EKS cluster with a custom domain. Install karpenter and use the following
ec2nodeclass
andnodepool
:The
nodepool
:Versions:
kubectl version
): v1.27.8-eks-8cb36c9The text was updated successfully, but these errors were encountered: