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

Why is the pod started by my virtual-node always pending? #1157

Open
googs1025 opened this issue Sep 9, 2023 · 0 comments
Open

Why is the pod started by my virtual-node always pending? #1157

googs1025 opened this issue Sep 9, 2023 · 0 comments

Comments

@googs1025
Copy link


Environment summary

Provider (e.g. ACI, AWS Fargate)

Version (e.g. 0.1, 0.2-beta)

K8s Master Info (e.g. AKS, ACS, Bare Metal, EKS)
Native k8s cluster
Install Method (e.g. Helm Chart, )

Issue Details

Excuse me, I am a new user of visual-kubelet. I use virtual-kubelet to implement a simple node, but when I start vk, the pod is always in the pending state. Why? I have modified the pod status and container status, but it seems to have no effect?

[root@VM-0-8-centos ~]# kubectl get pods | grep virtual-kubelet-pod-test-bash
virtual-kubelet-pod-test-bash               0/1     Pending            0          5m25s

Project log

ERRO[1200] Error processing pod status update            error="error while updating pod status in kubernetes: Operation cannot be fulfilled on pods \"virtual-kubelet-pod-test-bash\": StorageError: invalid object, Code: 4, Key: /registry/pods/default/virtual-kubelet-pod-test-bash, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 741a5466-fcf3-467b-8306-39aa3e6a4ec3, UID in object meta: deb83903-9c9a-40ad-bcde-9722167e0bc8"
WARN[1200] requeuing "default/virtual-kubelet-pod-test-bash" due to failed sync  error="error while updating pod status in kubernetes: Operation cannot be fulfilled on pods \"virtual-kubelet-pod-test-bash\": StorageError: invalid object, Code: 4, Key: /registry/pods/default/virtual-kubelet-pod-test-bash, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 741a5466-fcf3-467b-8306-39aa3e6a4ec3, UID in object meta: deb83903-9c9a-40ad-bcde-9722167e0bc8"
ERRO[1260] Error processing pod status update            error="error while updating pod status in kubernetes: Operation cannot be fulfilled on pods \"virtual-kubelet-pod-test-bash\": StorageError: invalid object, Code: 4, Key: /registry/pods/default/virtual-kubelet-pod-test-bash, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 741a5466-fcf3-467b-8306-39aa3e6a4ec3, UID in object meta: deb83903-9c9a-40ad-bcde-9722167e0bc8"
WARN[1260] requeuing "default/virtual-kubelet-pod-test-bash" due to failed sync  error="error while updating pod status in kubernetes: Operation cannot be fulfilled on pods \"virtual-kubelet-pod-test-bash\": StorageError: invalid object, Code: 4, Key: /registry/pods/default/virtual-kubelet-pod-test-bash, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 741a5466-fcf3-467b-8306-39aa3e6a4ec3, UID in object meta: deb83903-9c9a-40ad-bcde-9722167e0bc8"

Repo: https://github.com/Kubernetes-Learning-Playground/virtual-kubelet-practice-demo/blob/main/pkg/providers/customize_container.go

Repo Steps

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

No branches or pull requests

1 participant