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
Configuring Projected volume with pod is always in CrashLoopBackoff State #118526
Comments
There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:
Please see the group list for a listing of the SIGs, working groups, and committees available. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/language en |
@niranjandarshann: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
By default, a pod’s restart policy is Always, meaning it should always restart on failure (other options are Never or OnFailure). Depending on the restart policy defined in the pod template, Kubernetes might try to restart the pod multiple times. Every time the pod is restarted, Kubernetes waits for a longer and longer time, known as a “backoff delay”. During this process, Kubernetes displays the CrashLoopBackOff error. |
@tamilselvan1102 thank you, but here i am looking for whats wrong in the process i am doing. |
Hey @niranjandarshann , I believe the issue is not with the volumes, but with the image, you are using, busy box as the image, but as there is no process that keeps the container running, the pod is completing, as you can see in your first screenshot, and after that it is going to crashloopback state. To keep a container running you can try something like:
This will start a sleep process in your busybox, that will keep the container running for 1 hr. Hope this help 😃 |
@killshotrevival Thank you for your support now the pod is running by adding command labels in my yaml file. |
closing the issue marking it as resolved |
@niranjandarshann: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Page related to the issue: https://kubernetes.io/docs/concepts/storage/projected-volumes/#example-configuration-secrets-nondefault-permission-mode
When i am creating a projected volume having two secrets mysecret and mysecret1 at the location /project-volume/my-guide/my-username and /project-volume/my-guide/my-password the secret get created perfectly and when i create a pod it get created but remain in CrashLoopBackoff State.
Whether i am missing any thing or is there any problem with the file.
I am attaching the whole process i do:
File Location
Created Secrets
Yaml file of Pod
Final Output
Your opinion and help means a lot to me.
Proposed solution :
The pods should go in Ready state.
The text was updated successfully, but these errors were encountered: