Skip to content

Blocked Pod on recreationย #1189

@siryur

Description

@siryur

TL;DR

When the chart tries to replace the running pod, it first tries to create the new pod before destroying the current one (which is the default behaviour of a Deployment without an explicit "strategy").

Since by default metric ports are allocated on the node, if a new pod is allocated to the same node, the deployment won't continue.

Expected behavior

Have a way to configure the existing pod to terminate instead of waiting first for the new pod to come up

Observed behavior

The deployment is on hold until some event removes the running pod.

Minimal working example

  1. Create a new cluster with a single node
  2. Deploy the chart
  3. Edit the deployment to have a new pod come up

Log output


Additional information

Possible solution:

spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: 2
selector:
matchLabels:
{{- include "hcloud-cloud-controller-manager.selectorLabels" . | nindent 6 }}

โ˜๏ธ could become ๐Ÿ‘‡

spec:
  {{- with .Values.strategy }}
  strategy:
    {{- toYaml . | nindent 8 }}
  {{- end }}
  replicas: {{ .Values.replicaCount }}
  revisionHistoryLimit: 2
  selector:
    matchLabels:
      {{- include "hcloud-cloud-controller-manager.selectorLabels" . | nindent 6 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions