syself / charts

Helm charts repo
Apache License 2.0
12 stars 4 forks source link

:seedling: konnectivity agent less replicas for small clusters. #65

Closed guettli closed 1 year ago

guettli commented 1 year ago

What type of PR is this?

konnectivity agent less replicas for small clusters.

/kind feature New functionality.

If there are not enough worker-nodes, then you get errors like this:

❯ k get -o yaml -n kube-system deployments.apps  konnectivity-agent
....
status:
  availableReplicas: 2
  conditions:
  - lastTransitionTime: "2023-08-15T07:45:46Z"
    lastUpdateTime: "2023-08-15T07:52:33Z"
    message: ReplicaSet "konnectivity-agent-6c5947646d" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  - lastTransitionTime: "2023-08-15T12:33:35Z"
    lastUpdateTime: "2023-08-15T12:33:35Z"
    message: Deployment does not have minimum availability.
    reason: MinimumReplicasUnavailable
    status: "False"
    type: Available
  observedGeneration: 154
  readyReplicas: 2
  replicas: 3
  unavailableReplicas: 1
  updatedReplicas: 3

This PR reduces the number if mininmal available pods to 2.

This means the above error still appears in clusters with one worker node.