summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Barbot <julien@barbot.org>2018-10-23 12:15:31 +0200
committerJulien Barbot <julien@barbot.org>2018-10-23 14:18:32 +0200
commit8cd9447dfb6463f1f9229ce63a3f5aea30f6fe3b (patch)
tree9c138a1573d93960ca91afa6b3563bdf80e97cb2
parent57a322c8445b56eb67a2295c40895270bcca9b0b (diff)
Consistent naming for vid deployment
Change-Id: I7ae002ae214f1c0ca858a96c79e2b74f15d13405 Issue-ID: OOM-729 Signed-off-by: Julien Barbot <julien@barbot.org>
-rw-r--r--kubernetes/vid/templates/deployment.yaml2
-rw-r--r--kubernetes/vid/templates/job.yaml (renamed from kubernetes/vid/templates/vid-galera-config-job.yaml)10
2 files changed, 6 insertions, 6 deletions
diff --git a/kubernetes/vid/templates/deployment.yaml b/kubernetes/vid/templates/deployment.yaml
index 4c635facd2..24cce14f8d 100644
--- a/kubernetes/vid/templates/deployment.yaml
+++ b/kubernetes/vid/templates/deployment.yaml
@@ -35,7 +35,7 @@ spec:
- /root/job_complete.py
args:
- --job-name
- - vid-config-galera
+ - {{ include "common.fullname" . }}-galera-config
env:
- name: NAMESPACE
valueFrom:
diff --git a/kubernetes/vid/templates/vid-galera-config-job.yaml b/kubernetes/vid/templates/job.yaml
index 2bcf64749d..7d17e36f4e 100644
--- a/kubernetes/vid/templates/vid-galera-config-job.yaml
+++ b/kubernetes/vid/templates/job.yaml
@@ -15,21 +15,21 @@
apiVersion: batch/v1
kind: Job
metadata:
- name: vid-config-galera
+ name: {{ include "common.fullname" . }}-galera-config
namespace: {{ include "common.namespace" . }}
labels:
- app: vid-config-galera
+ app: {{ include "common.name" . }}-job
release: {{ .Release.Name }}
spec:
template:
metadata:
labels:
+ app: {{ include "common.name" . }}-job
release: {{ .Release.Name }}
- name: vid-galera-init
spec:
initContainers:
#This container checks that all galera instances are up before initializing it.
- - name: vid-init-galera-readiness
+ - name: {{ include "common.name" . }}-readiness
image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
@@ -46,7 +46,7 @@ spec:
apiVersion: v1
fieldPath: metadata.namespace
containers:
- - name: vid-config-galeradb
+ - name: {{ include "common.name" . }}-job
image: {{ .Values.mariadb_image }}
imagePullPolicy: "{{ .Values.pullPolicy }}"
volumeMounts: