2019-02-05 21:05:02 +01:00
|
|
|
# https://docs.openshift.com/container-platform/3.11/rest_api/oapi/v1.DeploymentConfig.html#object-schema
|
2019-01-27 19:47:08 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: DeploymentConfig
|
|
|
|
metadata:
|
2019-02-06 10:49:36 +01:00
|
|
|
name: frontend
|
2019-01-27 19:47:08 +01:00
|
|
|
labels:
|
2019-02-06 10:49:36 +01:00
|
|
|
service: frontend
|
2019-01-27 19:47:08 +01:00
|
|
|
spec:
|
2019-09-16 10:11:16 +02:00
|
|
|
replicas: {{koschei_frontend_replicas}}
|
2019-01-27 19:47:08 +01:00
|
|
|
selector:
|
2019-02-06 10:49:36 +01:00
|
|
|
service: frontend
|
2019-01-27 19:47:08 +01:00
|
|
|
strategy:
|
|
|
|
type: Rolling
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2019-02-06 10:49:36 +01:00
|
|
|
service: frontend
|
2019-01-27 19:47:08 +01:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: frontend
|
2022-06-24 06:44:38 +02:00
|
|
|
image: image-registry.openshift-image-registry.svc:5000/koschei/koschei:latest
|
2019-02-05 21:05:02 +01:00
|
|
|
command: [/usr/bin/koschei-frontend]
|
2019-01-27 19:47:08 +01:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
volumeMounts:
|
2019-02-06 10:49:36 +01:00
|
|
|
- name: config
|
2019-01-27 19:47:08 +01:00
|
|
|
mountPath: /etc/koschei
|
|
|
|
readOnly: true
|
2019-02-06 18:24:05 +01:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 500m
|
|
|
|
memory: 128Mi
|
|
|
|
limits:
|
|
|
|
cpu: 2000m
|
|
|
|
memory: 512Mi
|
2019-01-27 19:47:08 +01:00
|
|
|
readinessProbe:
|
|
|
|
timeoutSeconds: 1
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
httpGet:
|
2020-09-09 11:33:55 +02:00
|
|
|
path: /collections
|
2019-01-27 19:47:08 +01:00
|
|
|
port: 8080
|
|
|
|
livenessProbe:
|
|
|
|
timeoutSeconds: 1
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
httpGet:
|
2020-09-09 11:33:55 +02:00
|
|
|
path: /collections
|
2019-01-27 19:47:08 +01:00
|
|
|
port: 8080
|
|
|
|
volumes:
|
2019-02-06 10:49:36 +01:00
|
|
|
- name: config
|
2019-01-27 19:47:08 +01:00
|
|
|
secret:
|
|
|
|
secretName: frontend-config
|
2020-02-18 12:29:11 +01:00
|
|
|
triggers:
|
|
|
|
- type: ImageChange
|
|
|
|
imageChangeParams:
|
|
|
|
automatic: true
|
|
|
|
from:
|
|
|
|
kind: ImageStreamTag
|
|
|
|
name: koschei:latest
|
|
|
|
containerNames:
|
|
|
|
- frontend
|