pod autoremoval feature added
This commit is contained in:
@@ -41,6 +41,30 @@ spec:
|
||||
spec:
|
||||
description: NodeTainterConfigSpec defines the desired state of NodeTainterConfig.
|
||||
properties:
|
||||
crashLoopPolicy:
|
||||
description: CrashLoopPolicy defines the policy for handling pods
|
||||
in CrashLoopBackOff.
|
||||
properties:
|
||||
enabled:
|
||||
description: Enabled toggles the CrashLoopBackOff handling feature.
|
||||
type: boolean
|
||||
monitoredDeployments:
|
||||
description: |-
|
||||
MonitoredDeployments is a list of Deployments (in "namespace/name" format)
|
||||
whose pods should be monitored for CrashLoopBackOff.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
restartThreshold:
|
||||
default: 5
|
||||
description: |-
|
||||
RestartThreshold is the number of container restarts after which
|
||||
a pod in CrashLoopBackOff will be deleted to attempt rescheduling.
|
||||
Minimum recommended value: 3 or 5.
|
||||
format: int32
|
||||
minimum: 1
|
||||
type: integer
|
||||
type: object
|
||||
imageUpdatePolicy:
|
||||
description: ImageUpdatePolicy defines the policy for automatic image
|
||||
updates.
|
||||
|
@@ -26,6 +26,7 @@ rules:
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
@@ -39,6 +40,14 @@ rules:
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- apps
|
||||
resources:
|
||||
- replicasets
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- operator.andy.vendetti.ru
|
||||
resources:
|
||||
|
@@ -19,5 +19,11 @@ spec:
|
||||
imageUpdatePolicy:
|
||||
enabled: true
|
||||
checkInterval: "5m"
|
||||
monitoredTags: ["latest", "dev"]
|
||||
monitoredTags: ["latest", "dev", "master"]
|
||||
# restartAnnotation: "andy.vendetti.ru/restartedAt"
|
||||
crashLoopPolicy:
|
||||
enabled: true
|
||||
restartThreshold: 5
|
||||
monitoredDeployments:
|
||||
- "default/hello-updater-test"
|
||||
- "app-namespace/critical-app-deployment"
|
||||
|
Reference in New Issue
Block a user