-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Unclear documentation about sidecar containers #42762
Comments
Hi @parimaljanagithub, I believe the error message you are getting is because you might have used /language en |
Page related to the issue: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#pod-restart-reasons |
Hi @thisisharrsh ,
|
Could you please provide the code block with proper indentation? |
updated above section |
The indentation should be corrected as below
|
/kind bug |
https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#api-for-sidecar-containers mentions a feature gate, but doesn't make it explicitly clear that you need to enable it. The feature gate is named The fix I recommend:
/remove-kind bug I don't think there is anything actually incorrect. |
Is anybody working to fix this issue? If no, i can take it. |
/assign @T-Lakshmi |
Feel free to involve me, if you need any help. |
@kumarankit999 Sure, Thank you. |
PR raised to fix the issue #43346. |
Also see #43610 |
To learn more, you can read (but not plagiarize) https://loft.sh/blog/kubernetes-init-containers/ |
Hi, I also having this problem I tried to add restartPolicy as
I do not got any errors for the Im using Minikube, and my
CC: @tamilselvan1102 @thisisharrsh @T-Lakshmi Your suggestions highly appriciatable |
Looks like you are using 1.27, but this feature was added in 1.28.
https://kubernetes.io/blog/2023/08/25/native-sidecar-containers/
|
Thanks @stmcginnis. I updated my k8s
Even though I can not use
|
restartPolicy under initContainers is not allowing to create Jobs specified into the below documents
Error Message:
Job in version "v1" cannot be handled as a Job: strict decoding error: unknown field "spec.template.spec.initContainers[0].restartPolicy"
Document Link:
https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#pod-restart-reasons
The text was updated successfully, but these errors were encountered: