2024-05-22 11:37:30 +02:00
|
|
|
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
|
|
|
|
---
|
2024-12-18 09:56:49 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
2024-05-22 11:37:30 +02:00
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: kanban
|
|
|
|
service: kanban-web
|
|
|
|
name: kanban-web
|
2024-12-18 11:05:40 +01:00
|
|
|
annotations:
|
|
|
|
image.openshift.io/triggers: >-
|
|
|
|
[{"from":{"kind":"ImageStreamTag","name":"kanban:latest","namespace":"kanban"},"fieldPath":"spec.template.spec.containers[?(@.name==\"kanban-web\")].image","pause":"false"}]
|
2024-05-22 11:37:30 +02:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
2024-12-18 09:56:49 +01:00
|
|
|
matchLabels:
|
|
|
|
app: kanban
|
|
|
|
service: kanban-web
|
2024-05-22 11:37:30 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: kanban
|
2024-12-18 09:56:49 +01:00
|
|
|
service: kanban-web
|
2024-05-22 11:37:30 +02:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: kanban-web
|
2024-12-18 09:56:49 +01:00
|
|
|
image: image-registry.openshift-image-registry.svc:5000/kanban/kanban:latest
|
2024-05-22 11:37:30 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
resources: {}
|
2024-05-28 17:15:16 +02:00
|
|
|
env:
|
2024-05-28 17:58:36 +02:00
|
|
|
{{ load_file('envvars.jinja') | indent(8) }}
|
2024-05-22 11:37:30 +02:00
|
|
|
volumeMounts:
|
|
|
|
- name: kanban-secret-volume
|
|
|
|
mountPath: /opt/app-root/secret/
|
|
|
|
readOnly: true
|
|
|
|
readinessProbe:
|
2024-06-10 16:00:32 +02:00
|
|
|
timeoutSeconds: 15
|
2024-05-22 11:37:30 +02:00
|
|
|
initialDelaySeconds: 5
|
|
|
|
httpGet:
|
2024-06-10 16:18:45 +02:00
|
|
|
path: /api/0/probe
|
2024-05-22 11:37:30 +02:00
|
|
|
port: 8080
|
|
|
|
livenessProbe:
|
2024-06-10 16:00:32 +02:00
|
|
|
timeoutSeconds: 25
|
|
|
|
initialDelaySeconds: 60
|
2024-05-22 11:37:30 +02:00
|
|
|
httpGet:
|
2024-06-10 16:18:45 +02:00
|
|
|
path: /api/0/probe
|
2024-05-22 11:37:30 +02:00
|
|
|
port: 8080
|
|
|
|
volumes:
|
|
|
|
- name: kanban-secret-volume
|
|
|
|
secret:
|
|
|
|
secretName: kanban-secret
|