From b8c31335fd72ddfc725d12e84ad916fbde0fda00 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 23 Aug 2018 20:51:22 +0000 Subject: [PATCH] Initial DeploymentConfig for koschei --- playbooks/openshift-apps/koschei.yml | 8 +++ .../koschei/templates/deploymentconfig.yml | 55 +++++++++++++++++++ .../koschei/templates/service.yml | 15 +++++ 3 files changed, 78 insertions(+) create mode 100644 roles/openshift-apps/koschei/templates/deploymentconfig.yml create mode 100644 roles/openshift-apps/koschei/templates/service.yml diff --git a/playbooks/openshift-apps/koschei.yml b/playbooks/openshift-apps/koschei.yml index fce52c86fc..7e2fc0e8e0 100644 --- a/playbooks/openshift-apps/koschei.yml +++ b/playbooks/openshift-apps/koschei.yml @@ -21,3 +21,11 @@ app: koschei template: buildconfig.yml objectname: buildconfig.yml + - role: openshift/object + app: koschei + template: service.yml + objectname: service.yml + - role: openshift/object + app: koschei + template: deploymentconfig.yml + objectname: deploymentconfig.yml diff --git a/roles/openshift-apps/koschei/templates/deploymentconfig.yml b/roles/openshift-apps/koschei/templates/deploymentconfig.yml new file mode 100644 index 0000000000..4436629fb1 --- /dev/null +++ b/roles/openshift-apps/koschei/templates/deploymentconfig.yml @@ -0,0 +1,55 @@ +apiVersion: v1 +items: +- apiVersion: v1 + kind: DeploymentConfig + metadata: + labels: + app: koschei + service: web + name: koschei-web + spec: + replicas: 1 + selector: + deploymentconfig: koschei-web + strategy: + activeDeadlineSeconds: 21600 + recreateParams: + timeoutSeconds: 600 + resources: {} + rollingParams: + intervalSeconds: 1 + maxSurge: 25% + maxUnavailable: 25% + timeoutSeconds: 600 + updatePeriodSeconds: 1 + type: Rolling + template: + metadata: + creationTimestamp: null + labels: + app: koschei-web + deploymentconfig: koschei-web + spec: + containers: + - name: koschei-web + image: koschei-web:latest + ports: + - containerPort: 80 + resources: {} + volumeMounts: {} + readinessProbe: + timeoutSeconds: 10 + initialDelaySeconds: 5 + httpGet: + path: / + port: 80 + livenessProbe: + timeoutSeconds: 10 + initialDelaySeconds: 30 + httpGet: + path: / + port: 80 + volumes: {} + triggers: {} +kind: List +metadata: {} diff --git a/roles/openshift-apps/koschei/templates/service.yml b/roles/openshift-apps/koschei/templates/service.yml new file mode 100644 index 0000000000..cbb579534e --- /dev/null +++ b/roles/openshift-apps/koschei/templates/service.yml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: koschei-web + labels: + app: koschei + service: web + namespace: koschei +spec: + ports: + - name: web + port: 80 + targetPort: 80 + selector: + deploymentconfig: koschei-web