summaryrefslogtreecommitdiffstats
path: root/setup/projects/adei/templates/10-adei-mini-build.yml.j2
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:55:40 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:55:40 +0200
commitefe4b9bbe3c9cb950378de9697eed2030ac49ca2 (patch)
treeac478e0d2d4a385161fcb189f48998faf2410e5a /setup/projects/adei/templates/10-adei-mini-build.yml.j2
parent6b659b35c1d6214688920200efe1d782a0a5d877 (diff)
downloadands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.tar.gz
ands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.tar.bz2
ands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.tar.xz
ands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.zip
Optimize ADEI template: mini-containers for cron-jobs, adjust scheduling intervals to reduce load spikes
Diffstat (limited to 'setup/projects/adei/templates/10-adei-mini-build.yml.j2')
-rw-r--r--setup/projects/adei/templates/10-adei-mini-build.yml.j246
1 files changed, 46 insertions, 0 deletions
diff --git a/setup/projects/adei/templates/10-adei-mini-build.yml.j2 b/setup/projects/adei/templates/10-adei-mini-build.yml.j2
new file mode 100644
index 0000000..19024bd
--- /dev/null
+++ b/setup/projects/adei/templates/10-adei-mini-build.yml.j2
@@ -0,0 +1,46 @@
+apiVersion: v1
+kind: Template
+metadata:
+ name: adei-mini-build
+ labels:
+ app: adei
+ annotations:
+ descriptions: "ADEI/Mini Build"
+objects:
+ - kind: ImageStream
+ apiVersion: v1
+ metadata:
+ name: adei-mini
+ - kind: "BuildConfig"
+ apiVersion: "v1"
+ metadata:
+ name: "adei-mini"
+ spec:
+# runPolicy: "Serial"
+ successfulBuildsHistoryLimit: "{{ adei_pod_history_limit }}"
+ failedBuildsHistoryLimit: "{{ adei_pod_history_limit }}"
+ triggers:
+ - type: "ConfigChange"
+ - type: "ImageChange"
+ imageChange: {}
+ source:
+ type: "Git"
+ git:
+ uri: "http://adei.info/git/csa/devops/docker/adei.git"
+ contextDir: "adei"
+ strategy:
+ dockerStrategy:
+ forcePull: true
+ dockerfilePath: Dockerfile.mini
+ output:
+ to:
+ kind: "ImageStreamTag"
+ name: "adei-mini:latest"
+ imageLabels:
+ - name: "vendor"
+ value: "KIT"
+ - name: "author"
+ value: "Suren A. Chilingaryan"
+ - name: "authoritative-source-url"
+ value: "adei.info"
+