-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
pods with init container with restartPolicy: Always
stay in Init
status
#2520
Comments
@Shohou Can't seem to repro this ;( showing What am I missing? apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
restartPolicy: Always
initContainers:
- name: init-1
image: busybox
command: ['ls', '/']
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
name: web |
@derailed try this:
|
@Shohou Did I miss the memo?? |
This is new feature of kubernetes 1.29 - https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/ |
@Shohou Thank you for the correction Dmitry! |
* [Maint] Fix race condition issue * [Bug] Fix derailed#2501 * [Maint] Allow reference to resource aliases for plugins * [Feat] Intro cp namespace command + misc cleanup * [Maint] Rev k8s v0.29.1 * [Bug] Fix derailed#1033, derailed#1558 * [Bug] Fix derailed#2527 * [Bug] Fix derailed#2520 * rel v0.31.8
Describe the bug
I'm using kubernetes 1.29 and created a pod with normal container and init container which has
restartPolicy: Always
. In k9s pod always stays inInit:1/2
state, whilekubectl get po <name>
shows stateRunning
To Reproduce
Steps to reproduce the behavior:
restartPolicy: Always
Init:1/2
Expected behavior
Status should be
Running
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: