-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathflower.yml.j2
62 lines (61 loc) · 1.26 KB
/
flower.yml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: flower
{% if managed_platform %}
labels:
app-code: "{{ appcode }}"
service-phase: "{{ servicephase }}"
cost-center: "{{ costcenter }}"
{% endif %}
spec:
selector:
matchLabels:
component: flower
template:
metadata:
labels:
component: flower
{% if managed_platform %}
paas.redhat.com/appcode: {{ appcode }}
{% endif %}
spec:
containers:
- name: flower
image: quay.io/packit/flower
env:
- name: CELERY_BROKER_URL
value: redis://{{ redis_hostname }}:6379/0
- name: FLOWER_PORT
value: "5555"
ports:
- containerPort: 5555
resources:
requests:
memory: "80Mi"
cpu: "5m"
limits:
memory: "128Mi"
cpu: "50m"
replicas: 1
strategy:
type: Recreate
---
apiVersion: v1
kind: Service
metadata:
name: flower
{% if managed_platform %}
labels:
paas.redhat.com/appcode: {{ appcode }}
{% endif %}
spec:
ports:
- name: "5555"
port: 5555
targetPort: 5555
selector:
component: flower