-
Notifications
You must be signed in to change notification settings - Fork 43
/
deployment.yaml
149 lines (148 loc) · 4.04 KB
/
deployment.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
apiVersion: v1
kind: Template
metadata:
name: insights-puptoo
objects:
- apiVersion: cloud.redhat.com/v1alpha1
kind: ClowdApp
metadata:
name: puptoo
spec:
envName: ${ENV_NAME}
testing:
iqePlugin: puptoo
optionalDependencies:
- ingress
- storage-broker
- host-inventory
deployments:
- name: processor
minReplicas: ${{MIN_REPLICAS}}
podSpec:
image: ${IMAGE}:${IMAGE_TAG}
livenessProbe:
failureThreshold: 3
httpGet:
path: /metrics
port: 9000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
path: /metrics
port: 9000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
env:
- name: LOG_LEVEL
value: ${LOG_LEVEL}
- name: KAFKA_LOGGER
value: ${KAFKA_LOGGER}
- name: CLOWDER_ENABLED
value: ${CLOWDER_ENABLED}
- name: HABERDASHER_EMITTER
value: ${HABERDASHER_EMITTER}
- name: HABERDASHER_KAFKA_BOOTSTRAP
value: ${HABERDASHER_KAFKA_BOOTSTRAP}
- name: HABERDASHER_KAFKA_TOPIC
value: ${HABERDASHER_KAFKA_TOPIC}
- name: HABERDASHER_LABELS
value: ${HABERDASHER_LABELS}
- name: HABERDASHER_TAGS
value: ${HABERDASHER_TAGS}
resources:
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
objectStore:
- ${PUPTOO_BUCKET}
inMemoryDb: true
kafkaTopics:
- replicas: 3
partitions: 20
topicName: ${INVENTORY_TOPIC}
config:
retention.ms: "86400000"
retention.bytes: "2684354560"
- replicas: 3
partitions: 24
topicName: platform.upload.validation
- replicas: 3
partitions: 4
topicName: platform.payload-status
- replicas: 3
partitions: 64
topicName: platform.upload.announce
parameters:
- name: LOG_LEVEL
value: INFO
- description: Cpu limit of service
name: CPU_LIMIT
value: 500m
- description: memory limit of service
name: MEMORY_LIMIT
value: 512Mi
- description: CPU request of service
name: CPU_REQUEST
value: 100m
- description: memory request of service
name: MEMORY_REQUEST
value: 256Mi
- description: min replicas
name: MIN_REPLICAS
value: "8"
- description: Image tag
name: IMAGE_TAG
required: true
- description: Image NAME
name: IMAGE
required: true
value: quay.io/cloudservices/insights-puptoo
# value: quay.io/redhat-services-prod/insights-management-tenant/insights-puptoo/insights-puptoo
- description : ClowdEnvironment name
name: ENV_NAME
required: true
- description : inventory topic name
name: INVENTORY_TOPIC
value: platform.inventory.host-ingress-p1
required: true
- description: Is clowder enabled
name: CLOWDER_ENABLED
value: "True"
- description: The haberdasher emitter type for logging
name: HABERDASHER_EMITTER
value: stderr
- description: The haberdasher kafka bootstrap server
name: HABERDASHER_KAFKA_BOOTSTRAP
value: kafka:29092
- description: Topic for haberdasher logs
name: HABERDASHER_KAFKA_TOPIC
value: platform.logging.logs
- description: App label for haberdasher logs
name: HABERDASHER_LABELS
value: '{"app": "puptoo"}'
- description: Tags for haberdasher logs
name: HABERDASHER_TAGS
value: '["puptoo"]'
- description: Kafka Logging level
name: KAFKA_LOGGER
value: "ERROR"
- description: Insights puptoo s3 bucket
name: PUPTOO_BUCKET
value: insights-upload-puptoo
- description: Access key for the object storage endpoint
name: STORAGE_ACCESS_KEY
value: $STORAGE_ACCESS_KEY
- description: Secret key for the object storage endpoint
name: STORAGE_SECRET_KEY
value: $STORAGE_SECRET_KEY