From 0ff0bcf04111214e8868102b59747c0a0839e435 Mon Sep 17 00:00:00 2001 From: wstewartlyra Date: Thu, 4 Apr 2024 16:18:53 -0400 Subject: [PATCH 1/2] Add support for annotation DB Migration job --- chart/templates/iq-server-jobs.yaml | 4 ++++ chart/values.yaml | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/chart/templates/iq-server-jobs.yaml b/chart/templates/iq-server-jobs.yaml index 0177d7e..c9824bc 100644 --- a/chart/templates/iq-server-jobs.yaml +++ b/chart/templates/iq-server-jobs.yaml @@ -2,6 +2,10 @@ apiVersion: batch/v1 kind: Job metadata: name: {{ .Release.Name }}-migrate-db + {{- with .Values.iq_server.migrationJobAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: completions: 1 parallelism: 1 diff --git a/chart/values.yaml b/chart/values.yaml index 2aa2793..f697019 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -98,16 +98,18 @@ iq_server: adminServiceAnnotations: # Annotations for the iq server pods podAnnotations: + # Annoations to apply to the DB migration job + migrationJobAnnotations: # Number of pods to run replicas: 2 - + # One of these can be set to hold the initial admin password initialAdminPassword: "admin123" # Plaintext password # The name of an existing Kubernetes secret containing a password key with a value of the base64 encoding of your # password initialAdminPasswordSecret: - + # Configures the readiness probe for each pod readinessProbe: initialDelaySeconds: 45 @@ -208,20 +210,20 @@ global: image: busybox tag: 1.28 -# Horizontal pod auto-scaler +# Horizontal pod auto-scaler hpa: - enabled: false + enabled: false minReplicas: 2 maxReplicas: 4 resources: - cpu: + cpu: enabled: true - average: + average: threshold: 50 - memory: + memory: enabled: false - average: - threshold: 60 + average: + threshold: 60 # Load balancer ingress: From c1a1b37b743520ed0e3b766479c5f35c6e0eda40 Mon Sep 17 00:00:00 2001 From: wstewartlyra Date: Thu, 4 Apr 2024 20:38:49 -0400 Subject: [PATCH 2/2] Update comment for annotation --- chart/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/values.yaml b/chart/values.yaml index f697019..c7a86ce 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -96,10 +96,10 @@ iq_server: applicationServiceAnnotations: # Annotations for the admin service adminServiceAnnotations: + # Annotations to apply to the DB migration job + migrationJobAnnotations: # Annotations for the iq server pods podAnnotations: - # Annoations to apply to the DB migration job - migrationJobAnnotations: # Number of pods to run replicas: 2