-
Notifications
You must be signed in to change notification settings - Fork 25
/
configmap-template.yaml
133 lines (116 loc) · 4.08 KB
/
configmap-template.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
apiVersion: v1
kind: Template
labels:
template: thoth-core-configmap
thoth: 0.1.0
metadata:
name: thoth-core-configmap
annotations:
description: This is Thoth Core - All the configmaps required to deploy Thoth Core Analyzer and Results API
openshift.io/display-name: Thoth Core Configmap
version: 0.2.0
tags: poc,thoth,ai-stacks
template.openshift.io/documentation-url: https://github.com/AICoE/Thoth/
template.openshift.io/long-description: This template defines resources needed to deploy Thoth Core Services as a Proof-of-Concept to OpenShift.
template.openshift.io/provider-display-name: Red Hat, Inc.
objects:
#
# Application Configuration
## Config
- kind: ConfigMap
apiVersion: v1
metadata:
name: thoth
labels:
app: thoth-core
data:
frontend-namespace: ${THOTH_FRONTEND_NAMESPACE}
middletier-namespace: ${THOTH_MIDDLETIER_NAMESPACE}
middletier-pod-cpu-limit: '0.5'
middletier-pod-memory-limit: '0.5Gi'
backend-namespace: ${THOTH_BACKEND_NAMESPACE}
storage-bucket-name: ${THOTH_DEPLOYMENT_NAME}
ceph-bucket-name: ${THOTH_CEPH_BUCKET}
ceph-bucket-prefix: ${THOTH_CEPH_BUCKET_PREFIX}
ceph-host: ${THOTH_S3_ENDPOINT_URL }
ceph-results-path: /results
user-api-service-port: '8080'
analyzer-cleanup-time: ${THOTH_ANALYZER_CLEANUP_TIME}
sync-observations: ${THOTH_SYNC_OBSERVATIONS}
log-cleanup-job: ${THOTH_LOG_CLEANUP_JOB}
package-releases-only-if-package-seen: ${THOTH_PACKAGE_RELEASES_ONLY_IF_PACKAGE_SEEN}
rsyslog-host: ${RSYSLOG_HOST}
rsyslog-port: ${RSYSLOG_PORT}
prometheus-pushgateway-host: ${PROMETHEUS_PUSHGATEWAY_HOST}
prometheus-pushgateway-port: ${PROMETHEUS_PUSHGATEWAY_PORT}
parameters:
- description: Name of the Thoth Frontend Namespace
displayName: Thoth Frontend Namespace
required: true
name: THOTH_FRONTEND_NAMESPACE
- description: Name of the Thoth Middle Tier Namespace
displayName: Thoth Middle Tier Namespace
required: true
name: THOTH_MIDDLETIER_NAMESPACE
- description: Name of the Thoth Backend Namespace
displayName: Thoth Backend Namespace
required: true
name: THOTH_BACKEND_NAMESPACE
- description: Time before analyzer pod gets removed from etcd.
displayName: Thoth analyzer cleanup time
required: true
name: THOTH_ANALYZER_CLEANUP_TIME
value: '7d'
- description: Set verbosity for the cleanup job.
displayName: Cleanup job verbosity level
name: THOTH_LOG_CLEANUP_JOB
value: 'DEBUG'
- description: Turn on or off automatic observation syncing to the graph database.
displayName: Sync observations
required: true
name: THOTH_SYNC_OBSERVATIONS
value: '0'
- description: Name of bucket where results are stored to.
displayName: Ceph bucket name
required: true
name: THOTH_CEPH_BUCKET
value: 'DH-DEV-DATA'
- description: Thoth Ceph bucket prefix.
displayName: Thoth Ceph bucket prefix
required: true
name: THOTH_CEPH_BUCKET_PREFIX
value: 'data/thoth'
- description: A host:port where Ceph endpoint can be used to store/retrieve data.
displayName: Ceph host
required: true
name: THOTH_S3_ENDPOINT_URL
- description: Storage bucket name to use for persisted files
displayName: Thoth Storage bucket name
required: true
value: thoth-test
name: THOTH_DEPLOYMENT_NAME
- displayName: THOTH_PACKAGE_RELEASES_ONLY_IF_PACKAGE_SEEN
description: Only insert packages that have been seen within the Graph database.
name: THOTH_PACKAGE_RELEASES_ONLY_IF_PACKAGE_SEEN
required: true
value: '1'
- displayName: RSYSLOG_HOST
description: A host to rsyslog for logging.
name: RSYSLOG_HOST
required: true
value: 'rsyslog.dh-stage-ingest.svc'
- displayName: RSYSLOG_PORT
description: A port to rsyslog for logging.
name: RSYSLOG_PORT
required: true
value: '10514'
- displayName: PROMETHEUS_PUSHGATEWAY_HOST
description: A host to push prometheus metrics via pushgateway.
name: PROMETHEUS_PUSHGATEWAY_HOST
required: false
value: 'pushgateway'
- displayName: PROMETHEUS_PUSHGATEWAY_PORT
description: A port to send prometheus metrics via pushgateway
name: PROMETHEUS_PUSHGATEWAY_PORT
required: false
value: '9091'