I defined a deployment which got created by not bring up any pod at all with following details. Any help is appreciated:
# kubectl describe deployment symphony
Name: symphony
Namespace: symphony
CreationTimestamp: Mon, 15 May 2017 19:25:34 +0000
Labels: app=naas
component=symphony
Selector: app=naas,component=symphony
Replicas: 0 updated | 1 total | 0 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 1 max unavailable, 1 max surge
OldReplicaSets: <none>
NewReplicaSet: <none>
No events.
--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
component: symphony
app: naas
name: symphony
namespace: symphony
spec:
replicas: 1
template:
metadata:
labels:
component: symphony
app: naas
spec:
containers:
- image: registry.naas.aws.charterlab.com:4567/symphony/api:17.05.10
name: api
command: ["sleep"]
args: ["300000"]
ports:
- containerPort: 8000
resources:
requests:
memory: 256Mi
limits:
memory: 1024Mi
I am facing exactly the same issue. Deployment gets created but not pod is started. When I check the replicaset it shows
NAME DESIRED CURRENT READY AGE
test-pod-v1-66775f865b 2 0 0 38s
The same yml was working fine for me. I suddenly got into this issue.
@david Thanks for the reply. I figured out the issue by checking kubectl describe replicaset. We were using Istio automatic sidecar injection. The istio-sidecar-injector pod was stalled in containercreating state. but the webhook was created. Hence pods of any other service were not getting created. Removing the automatic sidecar injector deployment fixed the issue for me.