Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGD-6179 Handle orphaned drivers #253

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/bigdata-spark-watcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: bigdata-spark-watcher
description: A Helm chart for the Spot Big Data Spark Watcher
type: application
version: 0.6.3
appVersion: 0.6.2
version: 0.6.4
appVersion: 0.6.3
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
sources:
Expand Down
14 changes: 14 additions & 0 deletions charts/bigdata-spark-watcher/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ spec:
value: {{ .Values.k8sEventLogCollector.bucketPrefix }}
- name: KUBE_EVENT_LOG_COLLECTION_ENVIRONMENT
value: {{ .Values.k8sEventLogCollector.environment }}
{{- if or .Values.stuckAppCleanupEnabled .Values.stuckDriverCleanupEnabled }}
- name: WATCHER_STUCK_SPARK_APP_CLEANUP_ENABLED
value: {{ .Values.stuckAppCleanupEnabled | quote }}
- name: WATCHER_STUCK_DRIVER_CLEANUP_ENABLED
value: {{ .Values.stuckDriverCleanupEnabled | quote }}
{{- with .Values.stuckCleanup }}
- name: WATCHER_STUCK_TTL
value: {{ .gracePeriod }}
- name: WATCHER_STUCK_TTL_LEEWAY
value: {{ .leeway }}
- name: WATCHER_STUCK_CHECK_FREQUENCY
value: {{ .period }}
{{- end }}
{{- end }}
- name: AWS_CREDENTIALS_FILE
value: /creds/aws
- name: GCP_CREDENTIALS_FILE
Expand Down
11 changes: 10 additions & 1 deletion charts/bigdata-spark-watcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: 066597193667.dkr.ecr.us-east-1.amazonaws.com/private/bigdata-spark-watcher
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: 0.6.2-0fdc670d
tag: 0.6.3-79527191

imagePullSecrets:
- name: spot-bigdata-image-pull
Expand Down Expand Up @@ -42,6 +42,15 @@ k8sEventLogCollector:
bucketPrefix: "spot-bigdata-logcollector"
environment: ""

# cleans up stuck failed apps without termination times
stuckAppCleanupEnabled: true
# cleans up orphaned drivers
stuckDriverCleanupEnabled: true
stuckCleanup:
gracePeriod: 10m
leeway: 2m
period: 2m

serviceAccount:
create: true
annotations: {}
Expand Down
Loading