-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a buffer period for ReplicaSet health evaluation (#120)
* feat: add a buffer period for ReplicaSet health evaluation * chore: don't exit early due to buffer period * feat: new way to handle buffer period for replicaset
- Loading branch information
1 parent
4d2b366
commit 63838eb
Showing
4 changed files
with
145 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
metadata: | ||
annotations: | ||
deployment.kubernetes.io/desired-replicas: "1" | ||
deployment.kubernetes.io/max-replicas: "1" | ||
deployment.kubernetes.io/revision: "2" | ||
meta.helm.sh/release-name: ittools | ||
meta.helm.sh/release-namespace: default | ||
creationTimestamp: "2024-08-03T06:06:18Z" | ||
generation: 52 | ||
labels: | ||
app.kubernetes.io/component: main | ||
app.kubernetes.io/instance: ittools | ||
app.kubernetes.io/name: ittools | ||
pod-template-hash: 5fbf458f49 | ||
name: ittools-5fbf458f49 | ||
namespace: default | ||
ownerReferences: | ||
- apiVersion: apps/v1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: Deployment | ||
name: ittools | ||
uid: d2beccff-8da9-42e8-8459-e7ff938b2ffd | ||
resourceVersion: "96413911" | ||
uid: c044b250-2445-4813-b00f-22b696c5fcf2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: main | ||
app.kubernetes.io/instance: ittools | ||
app.kubernetes.io/name: ittools | ||
pod-template-hash: 5fbf458f49 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: main | ||
app.kubernetes.io/instance: ittools | ||
app.kubernetes.io/name: ittools | ||
pod-template-hash: 5fbf458f49 | ||
spec: | ||
automountServiceAccountToken: true | ||
containers: | ||
- image: corentinth/it-tools:latest | ||
imagePullPolicy: Always | ||
name: it-tools | ||
resources: | ||
limits: | ||
memory: 50Mi | ||
requests: | ||
cpu: 25m | ||
memory: 10Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
enableServiceLinks: false | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: default | ||
serviceAccountName: default | ||
terminationGracePeriodSeconds: 30 | ||
status: | ||
availableReplicas: 1 | ||
fullyLabeledReplicas: 1 | ||
observedGeneration: 52 | ||
readyReplicas: 1 | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
apiVersion: apps/v1 | ||
kind: ReplicaSet | ||
metadata: | ||
uid: f6579017-448f-425a-9645-ea3c93700948 | ||
name: failing-deployment-866585899d | ||
labels: | ||
app: failing-app | ||
pod-template-hash: 866585899d | ||
namespace: default | ||
annotations: | ||
deployment.kubernetes.io/revision: "1" | ||
deployment.kubernetes.io/max-replicas: "2" | ||
deployment.kubernetes.io/desired-replicas: "1" | ||
ownerReferences: | ||
- uid: 1ab20b2b-e2c8-4e85-b7b6-5709ba594c0d | ||
kind: Deployment | ||
name: failing-deployment | ||
apiVersion: apps/v1 | ||
controller: true | ||
blockOwnerDeletion: true | ||
creationTimestamp: 2024-10-21T11:20:19Z | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: failing-app | ||
pod-template-hash: 866585899d | ||
template: | ||
spec: | ||
dnsPolicy: ClusterFirst | ||
containers: | ||
- args: | ||
- -c | ||
- sleep 5 && exit 1 | ||
name: failing-container | ||
image: busybox | ||
command: | ||
- /bin/sh | ||
resources: {} | ||
imagePullPolicy: Always | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
metadata: | ||
labels: | ||
app: failing-app | ||
pod-template-hash: 866585899d | ||
status: | ||
replicas: 1 | ||
fullyLabeledReplicas: 1 |