-
Notifications
You must be signed in to change notification settings - Fork 20
/
clowdapp.yaml
85 lines (84 loc) · 2.11 KB
/
clowdapp.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
apiVersion: v1
kind: Template
metadata:
name: yuptoo
objects:
- apiVersion: cloud.redhat.com/v1alpha1
kind: ClowdApp
metadata:
name: yuptoo
spec:
envName: ${ENV_NAME}
testing:
iqePlugin: foreman-rh-cloud
dependencies:
- ingress
- host-inventory
deployments:
- name: service
replicas: ${{MIN_REPLICAS}}
podSpec:
image: ${IMAGE}:${IMAGE_TAG}
command: ["sh"]
args: ["-c", "python -m main"]
resources:
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
env:
- name: CLOWDER_ENABLED
value: ${CLOWDER_ENABLED}
kafkaTopics:
- topicName: platform.upload.announce
partitions: 1
- topicName: platform.inventory.host-ingress
partitions: 1
- topicName: platform.upload.validation
partitions: 1
- topicName: platform.payload-status
partitions: 1
parameters:
- description : ClowdEnvironment name
name: ENV_NAME
required: true
- description: min replicas
name: MIN_REPLICAS
value: "1"
- description: Image NAME
name: IMAGE
required: true
value: quay.io/cloudservices/yuptoo
# value: quay.io/redhat-services-prod/insights-management-tenant/insights-yuptoo/yuptoo
- description: Image tag
name: IMAGE_TAG
required: true
- description: Initial cpu request.
displayName: CPU Request
name: CPU_REQUEST
required: true
value: 500m
- description: Initial amount of memory the container will request.
displayName: Memory Request
name: MEMORY_REQUEST
required: true
value: 1Gi
- description: Maximum amount of memory the Django container can use.
displayName: Memory Limit
name: MEMORY_LIMIT
required: true
value: 1Gi
- description: Maximum amount of CPU the build container can use.
displayName: CPU Limit
name: CPU_LIMIT
required: true
value: '1'
- description: Is clowder enabled
name: CLOWDER_ENABLED
value: "True"
- description: Consumer group id to be used.
name: KAFKA_CONSUMER_GROUP_ID
value: "qpc-group"