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..c7a86ce 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -96,18 +96,20 @@ 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: # 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: