Closed hostops closed 3 months ago
Also, I found out updating certificates is not expected behavior. https://github.com/kubernetes/kops/issues/15970#issuecomment-1740027576
No, kops expects you to update nodes at least every 455 days.
So this issue probably does not make sense? Can someone confirm?
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
/kind bug
1. What
kops
version are you running? The commandkops version
, will display this information. Last applied server version: 1.25.32. What Kubernetes version are you running?
kubectl version
will print the version if a cluster is running or provide the Kubernetes version specified as akops
flag. Server Version: v1.25.5 3. What cloud provider are you using? AWS 4. What commands did you run? What is the simplest way to reproduce this issue?5. What happened after the commands executed? I get two different outputs for the same file.
6. What did you expect to happen? I expected to get the same output since this should be the same file. You can see that when you check volumes and volumeMounts of kube-proxy path
Also if you check container configuration using
ctr
sudo ctr -n k8s.io container inspect <kube-config container id>
You can confirm this container uses the same file.I also believe those lines caused the issue. Especialy
rprivate
option. From docker documentation one can seeSo the default
rprivate
option can cause unsynchronized state if we have multiple replicas of this mounts. So another condition must be met for this issue to happen. There must be multiple containers with the same mount. This happens if node restarted and new kube-proxy pod is created. I believe this is the default behaviour so kubernetes can get logs from previous container. Even if only one the two containers is running/used this can happen. I can tested this hypothesis by running this commandsudo ctr -n k8s.io containers ls | grep proxy | wc -l
on all of our nodes. On all nodes where we have multiple containers (2) we can see unsynchronized certificates. Also I can confirm those are the only kube-proxy pods with restarts > 0. And on nodes with only single kube-proxy container we can see files /var/lib/kube-proxy/kubeconfig from node and pod to be the same.7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest. You may want to remove your cluster name and other sensitive information.9. Anything else do we need to know? So I believe this bug is caused by:
kubectl logs -p
rprivate
this caused/var/lib/kube-proxy/kubeconfig
to be unsynchronized between containers and node.Logs from kube-proxy
Logs from kube-api-server
10. Possible solutions?
kubectl logs -p
)Also, the more I read, the more I am not sure
rprivate
causes this behavior of unsynchronized file. Can you come up with any way we can confirm that?