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

fix: host DNS access with firewall enabled #9233

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

smira
Copy link
Member

@smira smira commented Aug 27, 2024

Explicitly enable access to host DNS from pod/service IPs.

Also fix the Kubernetes health checks to assert number of ready pods to match expectation, otherwise the check might skip a pod (e.g. kube-proxy one) which is not ready, allowing the test to proceed too early.

Update DNS test to print more logs on error.

Explicitly enable access to host DNS from pod/service IPs.

Also fix the Kubernetes health checks to assert number of ready pods to
match expectation, otherwise the check might skip a pod (e.g.
`kube-proxy` one) which is not ready, allowing the test to proceed too
early.

Update DNS test to print more logs on error.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira
Copy link
Member Author

smira commented Aug 27, 2024

Split from #8901

@smira
Copy link
Member Author

smira commented Aug 27, 2024

/m

@talos-bot talos-bot merged commit a9551b7 into siderolabs:main Aug 27, 2024
49 checks passed
smira added a commit to smira/talos that referenced this pull request Sep 12, 2024
The fix in siderolabs#9233 wasn't correct, as it was looking for number of
replicas in a "random" ReplicaSet. If the deployment has multiple
replica sets, it leads to unexpected results.

Instead, read the Deployment resource directly.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch fix/coredns-check
# Changes to be committed:
#	modified:   pkg/cluster/check/default.go
#	modified:   pkg/cluster/check/kubernetes.go
#
# Untracked files:
#	cert.pem
#	cgroup.tar
#	cgrp/
#	cilium.yaml
#	csr.pem
#	dict
#	experiment/
#	extensions.patch
#	host-dns-endpoints.yaml
#	privkey.pem
#	secrets.yaml
#	siderolink.yaml
#	state.test
#	talos-in-talos.yaml
#	watchdog.yaml
#
smira added a commit to smira/talos that referenced this pull request Sep 12, 2024
The fix in siderolabs#9233 wasn't correct, as it was looking for number of
replicas in a "random" ReplicaSet. If the deployment has multiple
replica sets, it leads to unexpected results.

Instead, read the Deployment resource directly.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Sep 12, 2024
The fix in siderolabs#9233 wasn't correct, as it was looking for number of
replicas in a "random" ReplicaSet. If the deployment has multiple
replica sets, it leads to unexpected results.

Instead, read the Deployment resource directly.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Sep 13, 2024
The fix in siderolabs#9233 wasn't correct, as it was looking for number of
replicas in a "random" ReplicaSet. If the deployment has multiple
replica sets, it leads to unexpected results.

Instead, read the Deployment resource directly.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit 780a1f1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants