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

[BUG] Duplicated SANs for K8s apiserver certificate #1587

Closed
9 of 10 tasks
przemyslavic opened this issue Aug 26, 2020 · 3 comments
Closed
9 of 10 tasks

[BUG] Duplicated SANs for K8s apiserver certificate #1587

przemyslavic opened this issue Aug 26, 2020 · 3 comments
Assignees
Labels

Comments

@przemyslavic
Copy link
Collaborator

przemyslavic commented Aug 26, 2020

Describe the bug
There are duplicate SAN entries for K8s apiserver certificate.

To Reproduce
Steps to reproduce the bug:

  1. Deploy a new cluster from develop branch with at least one K8s master node.
  2. Execute openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout | grep DNS on the master node to get the Subject Alternative Names (SAN) for a certificate.

Expected behavior
There are no duplicate SANs.

OS (please complete the following information):

  • OS: [All]

Cloud Environment (please complete the following information):

  • Cloud Provider [All]

Actual behavior:
There are duplicate entries with the master's private IP address.

root@ci-devazurubuflannel-kubernetes-master-vm-0:~# openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout | grep DNS

DNS:ci-devazurubuflannel-kubernetes-master-vm-0, DNS:kubernetes, DNS:kubernetes.default, DNS:kubernetes.default.svc, DNS:kubernetes.default.svc.cluster.local, DNS:localhost, IP Address:10.96.0.1, IP Address:10.1.1.4, IP Address:127.0.0.1, IP Address:10.1.1.4

DoD checklist

  • Changelog updated (if affected version was released)
  • COMPONENTS.md updated / doesn't need to be updated
  • Automated tests passed (QA pipelines)
    • apply
    • upgrade
  • Case covered by automated test (if possible)
  • Idempotency tested
  • Documentation updated / doesn't need to be updated
  • All conversations in PR resolved
  • Backport tasks created / doesn't need to be backported
@atsikham
Copy link
Contributor

IMO if we use kubeadm, it should be implemented there to keep kubeadm control plane config in sync with kubeadm configmap. Let's wait for some result in kubeadm issue and decide what to do next.

@atsikham
Copy link
Contributor

Should be fixed in kubeadm v1.19 - kubernetes/kubernetes#92753

@przemyslavic
Copy link
Collaborator Author

✔️ Fixed in Kubernetes v1.19

@mkyc mkyc closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants