Initial DeploymentConfig for koschei
This commit is contained in:
parent
f0ad01c4a7
commit
b8c31335fd
3 changed files with 78 additions and 0 deletions
|
@ -21,3 +21,11 @@
|
||||||
app: koschei
|
app: koschei
|
||||||
template: buildconfig.yml
|
template: buildconfig.yml
|
||||||
objectname: 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
|
||||||
|
|
55
roles/openshift-apps/koschei/templates/deploymentconfig.yml
Normal file
55
roles/openshift-apps/koschei/templates/deploymentconfig.yml
Normal file
|
@ -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: {}
|
15
roles/openshift-apps/koschei/templates/service.yml
Normal file
15
roles/openshift-apps/koschei/templates/service.yml
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue