Add DeploymentConfig for Koschei

This commit is contained in:
Mikolaj Izdebski 2019-01-27 19:47:08 +01:00
parent d8f02fa7de
commit aa71e43ab2
2 changed files with 49 additions and 0 deletions

View file

@ -17,3 +17,7 @@
secret_name: frontend-config
key: config-frontend.cfg
template: config-frontend.cfg.j2
- role: openshift/object
template: deploymentconfig.yml
objectname: deploymentconfig.yml

View file

@ -0,0 +1,45 @@
apiVersion: v1
kind: DeploymentConfig
metadata:
name: frontend-deployment
labels:
service: frontend-service
spec:
replicas: 1
selector:
service: frontend-service
strategy:
type: Rolling
template:
metadata:
labels:
service: frontend-service
spec:
containers:
- name: frontend
image: quay.io/koschei/frontend:latest
ports:
- containerPort: 8080
volumeMounts:
- name: config-volume
mountPath: /etc/koschei
readOnly: true
readinessProbe:
timeoutSeconds: 1
initialDelaySeconds: 5
httpGet:
path: /stats
port: 8080
livenessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
httpGet:
path: /stats
port: 8080
resources:
limits:
memory: 256Mi
volumes:
- name: config-volume
secret:
secretName: frontend-config