mirror of
https://github.com/codex-storage/bittorrent-benchmarks.git
synced 2025-02-24 16:58:22 +00:00
fix: add autoscaler eviction annotations to prevent pods from being relocated mid-experiment
This commit is contained in:
parent
fa5eba0a2f
commit
fdac384ad8
@ -30,9 +30,7 @@ Expand the name of the chart.
|
||||
{{- printf "%s-%s" (include "experiment.id" .) (include "experiment.groupId" .) }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common and selector labels.
|
||||
*/}}
|
||||
{{/* Common and selector labels. */}}
|
||||
{{- define "deluge-benchmarks.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
@ -56,9 +54,12 @@ app.kubernetes.io/instance: {{ include "experiment.id" . }}
|
||||
app.kubernetes.io/part-of: {{ include "experiment.groupId" . }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Minikube env.
|
||||
*/}}
|
||||
{{/* Annotations. */}}
|
||||
{{- define "deluge-benchmarks.pod.annotations" -}}
|
||||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
||||
{{- end }}
|
||||
|
||||
{{/* Minikube env. */}}
|
||||
|
||||
{{- define "benchmark.harness.image" -}}
|
||||
{{ .Values.deployment.minikubeEnv | ternary "bittorrent-benchmarks:minikube" "codexstorage/bittorrent-benchmarks:latest" }}
|
||||
|
@ -6,6 +6,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: deluge-nodes-service
|
||||
{{- include "deluge-benchmarks.labels" . | nindent 4}}
|
||||
|
||||
spec:
|
||||
clusterIP: None
|
||||
selector:
|
||||
|
@ -18,6 +18,8 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: deluge-node
|
||||
{{- include "deluge-benchmarks.labels" . | nindent 8 }}
|
||||
annotations:
|
||||
{{- include "deluge-benchmarks.pod.annotations" . | nindent 8 }}
|
||||
|
||||
spec:
|
||||
{{- if not .Values.deployment.allowColocation }}
|
||||
|
@ -14,6 +14,8 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: deluge-experiment-runner
|
||||
{{- include "deluge-benchmarks.labels" . | nindent 8 }}
|
||||
annotations:
|
||||
{{- include "deluge-benchmarks.pod.annotations" . | nindent 8 }}
|
||||
|
||||
spec:
|
||||
{{- with .Values.deployment.runnerNodePool }}
|
||||
|
@ -19,6 +19,8 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: bittorrent-tracker
|
||||
{{- include "deluge-benchmarks.labels" . | nindent 8 }}
|
||||
annotations:
|
||||
{{- include "deluge-benchmarks.pod.annotations" . | nindent 8 }}
|
||||
|
||||
spec:
|
||||
{{- with .Values.deployment.trackerNodePool }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user