ansible/roles/openshift-apps/koschei/templates/frontend-deployment.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

# 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:
name: frontend
2019-01-27 19:47:08 +01:00
labels:
service: frontend
2019-01-27 19:47:08 +01:00
spec:
replicas: {{koschei_frontend_replicas}}
2019-01-27 19:47:08 +01:00
selector:
service: frontend
2019-01-27 19:47:08 +01:00
strategy:
type: Rolling
template:
metadata:
labels:
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
command: [/usr/bin/koschei-frontend]
2019-01-27 19:47:08 +01:00
ports:
- containerPort: 8080
volumeMounts:
- name: config
2019-01-27 19:47:08 +01:00
mountPath: /etc/koschei
readOnly: true
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:
path: /collections
2019-01-27 19:47:08 +01:00
port: 8080
livenessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
httpGet:
path: /collections
2019-01-27 19:47:08 +01:00
port: 8080
volumes:
- name: config
2019-01-27 19:47:08 +01:00
secret:
secretName: frontend-config
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
from:
kind: ImageStreamTag
name: koschei:latest
containerNames:
- frontend