diff options
Diffstat (limited to 'setup/projects/adei/templates')
-rw-r--r-- | setup/projects/adei/templates/10-adei-mini-build.yml.j2 | 46 | ||||
-rw-r--r-- | setup/projects/adei/templates/60-adei.yml.j2 | 8 |
2 files changed, 50 insertions, 4 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" + diff --git a/setup/projects/adei/templates/60-adei.yml.j2 b/setup/projects/adei/templates/60-adei.yml.j2 index 6d0ccae..5e508bc 100644 --- a/setup/projects/adei/templates/60-adei.yml.j2 +++ b/setup/projects/adei/templates/60-adei.yml.j2 @@ -12,7 +12,7 @@ metadata: labels: app: "adei" objects: -{% for name, cfg in adei_frontends.iteritems() %} +{% for name, cfg in adei_frontends.items() %} {% if (cfg.enabled | default(true)) %} {% if (cfg.cron is defined) %} {% set pod_type = "cron" %} @@ -152,7 +152,7 @@ objects: {% endif %} containers: - name: "{{ cfg.name }}" - image: adei + image: "{{ cfg.image | default('adei:latest') }}" imagePullPolicy: {{ pull_policy }} {% if (cfg.node is defined) %} command: @@ -259,10 +259,10 @@ parameters: value: "sources" description: "Type of caching parallelism by a cacher replica: (sources or groups)" - name: update_schedule - value: "*/5 * * * *" + value: "*/13 * * * *" description: "Schedule of caching group updates" - name: maintain_schedule - value: "*/15 * * * *" + value: "*/31 * * * *" description: "Schedule of maintain tasks" - name: clean_schedule value: "9 3 * * *" |