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

Update variables.tf #689

Merged
merged 5 commits into from
Mar 30, 2023

Conversation

Wuppie007
Copy link
Contributor

@Wuppie007 Wuppie007 commented Mar 30, 2023

Apparently k8s only support 3 entries for DNS servers.

Check the validation here: https://github.com/kubernetes/kubernetes/blob/c970a46bc1bcc100bbbfabd5c12bd4c5d87f8aea/pkg/apis/core/validation/validation.go#L2944-L2953

To avoid these warning "Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 8.8.8.8 8.8.4.4 1.1.1.1"

randomly removed the last entry ;)

Apparently k8s only support 3 entries for DNS servers. 

To avoid these warning "Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 8.8.8.8 8.8.4.4 1.1.1.1"
@mysticaltech
Copy link
Collaborator

@Wuppie007 Thanks for this. Please don't hesitate to tweak the kube.tf.example file, and the description of the variable to inform of that limit.

If you are feeling adventurous, see how validations are done for some other variables (or just use chatgpt 4 🤐) to add a validation for 3 max values, it's just another attribute in the variable object.

Added validation for DNS list length
@aleksasiriski
Copy link
Member

I would argue to use both cloudflare's DNS servers and one Google, or even Quad9 as the third instead of Google

Updated DNS servers to three different DNS servers: Google, Cloudflare and quad9
@Wuppie007
Copy link
Contributor Author

Updated now for three different companies: ["8.8.8.8","1.1.1.1","9.9.9.9"]

@mysticaltech mysticaltech changed the base branch from master to staging March 30, 2023 20:29
@mysticaltech mysticaltech merged commit 1faeda5 into kube-hetzner:staging Mar 30, 2023
@mysticaltech
Copy link
Collaborator

Released in v2.0.2, thanks for your contribution both. FYI, I finally opted for @aleksasiriski's recommendation to put Cloudflare first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants