kubernetes: Deployment freezes at 0 and no RC created

Hi,

I’m having an issue with deployments. When I run through the deployment example I get a hanging deployment.

The yaml file is the same as the example, except I was trying to experiment with updating pod versions.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

I try to investigate further using describe. I have the apiserver log level set to 5. I get the following:

$ sudo kubectl get deployments
NAME               UPDATEDREPLICAS   AGE
nginx-deployment   0/3               34m

$ sudo kubectl describe deployments
Name:                           nginx-deployment
Namespace:                      default
CreationTimestamp:              Sat, 30 Jan 2016 06:03:47 +0000
Labels:                         app=nginx
Selector:                       app=nginx
Replicas:                       0 updated / 3 total
StrategyType:                   RollingUpdate
RollingUpdateStrategy:          1 max unavailable, 1 max surge, 0 min ready    seconds
OldReplicationControllers:      nginx (2/2 replicas created)
NewReplicationController:       <none>
No events.

When I check the events from kubernetes I see no events which belong to this deployment.

The versions are as followed:

Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3", GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3", GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"clean"}

I already posted on StackOverflow, but in the event that this is a bug I thought I should post here as well. Has anybody experienced this?

I checked out issue #19757, seems similar. But I enabled deployments with the apiserver, it seemed to be working but it just hangs and doesn’t give me any noticeable output… I tried what #19757 did, I deleted the kubectl cache and I have the logging level at 5 but I don’t see anything obvious at this point.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

can anyone please tell me how to restart “kube-controller-manager”

can anyone please tell me how to restart “kube-controller-manager”

This was the same solution for me.

As soon as I restarted the kube-controller-manager the deployments started to work.