Add DeploymentConfig for Koschei
This commit is contained in:
parent
d8f02fa7de
commit
aa71e43ab2
2 changed files with 49 additions and 0 deletions
|
@ -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
|
||||
|
|
45
roles/openshift-apps/koschei/templates/deploymentconfig.yml
Normal file
45
roles/openshift-apps/koschei/templates/deploymentconfig.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue