-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patherrata-all-services-in-one-pod-including-settings.yaml
233 lines (233 loc) · 8.45 KB
/
errata-all-services-in-one-pod-including-settings.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
apiVersion: v1
kind: Template
metadata: {name: errata-rails-aio-template}
objects:
- apiVersion: v1
kind: ImageStream
metadata:
labels: {app: '${APP_NAME}'}
name: ${APP_NAME}-s2i
spec:
tags:
- from: {kind: DockerImage, name: "${ET_S2I_IMAGE}:${ET_S2I_IMAGE_BRANCH}"}
name: latest
- apiVersion: v1
kind: ImageStream
metadata:
labels: {app: '${APP_NAME}'}
name: ${APP_NAME}-basic
spec:
tags:
- from: {kind: DockerImage, name: "${NAMESPACE}/${APP_NAME}-s2i:latest"}
name: latest
- apiVersion: v1
kind: BuildConfig
metadata:
labels: {app: '${APP_NAME}'}
name: ${APP_NAME}-bc
spec:
output:
to: {kind: ImageStreamTag, name: "${APP_NAME}-basic:latest"}
runPolicy: Serial
source:
git: {ref: '${GIT_BRANCH}', uri: '${GIT_URL}'}
type: Git
strategy:
sourceStrategy:
env:
- {name: RACK_ENV, value: '${RACK_ENV}'}
- name: ET_DB_NAME
valueFrom:
secretKeyRef: {key: database-name, name: '${ET_MYSQL_SECRET}'}
- name: ET_DB_USER
valueFrom:
secretKeyRef: {key: database-user, name: '${ET_MYSQL_SECRET}'}
- name: ET_DB_PASSWORD
valueFrom:
secretKeyRef: {key: database-password, name: '${ET_MYSQL_SECRET}'}
- {name: ET_DB_HOST, value: '${APP_NAME}-mariadb-102-rhel7'}
- {name: ET_DB_PORT, value: '${ET_DB_PORT}'}
- {name: GIT_SSL_NO_VERIFY, value: '${GIT_SSL_NO_VERIFY}'}
- {name: RAILS_ENV, value: '${RAILS_ENV}'}
- {name: ALL_IN_ONE, value: '${ALL_IN_ONE}'}
- {name: AUTH_TYPE, value: '${AUTH_TYPE}'}
- {name: QE_TESTING, value: '${QE_TESTING}'}
forcePull: true
from: {kind: ImageStreamTag, name: '${APP_NAME}-s2i:latest'}
type: Source
triggers:
- generic: {secret: 0c71917bd034e7bd}
type: Generic
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels: {app: '${APP_NAME}'}
name: ${APP_NAME}-rails
spec:
replicas: 1
selector: {deploymentconfig: '${APP_NAME}'}
strategy: {type: Rolling}
template:
metadata:
labels: {deploymentconfig: '${APP_NAME}'}
spec:
containers:
- envFrom:
- secretRef: {name: '${ET_SECRET}'}
- configMapRef: {name: '${ET_CONFIGMAP}'}
image: ${NAMESPACE}/${APP_NAME}-basic:latest
imagePullPolicy: Always
name: ${APP_NAME}-rails
ports:
- {containerPort: '${ET_WEB_PORT}', protocol: TCP}
resources:
limits: {cpu: '${CPU_LIMITS}', memory: '${MEM_LIMITS}'}
requests: {cpu: '${CPU_REQUEST}', memory: '${MEM_REQUEST}'}
volumeMounts:
- {mountPath: /mnt/redhat/brewroot, name: mnt-brew, readonly: 'true'}
- {mountPath: /opt/app-root/src/cert, name: errata-cert}
- {mountPath: /opt/app-root/src/config/inventory_config.yml, name: volume-inventory-config, subPath: inventory_config.yml}
volumes:
- name: mnt-brew
persistentVolumeClaim: {claimName: pvc-errata-qe-test-mnt-redhat}
- name: errata-cert
persistentVolumeClaim: {claimName: errata-cert}
- name: volume-inventory-config
configMap: {name: inventory-config}
triggers:
- imageChangeParams:
automatic: false
containerNames: ['${APP_NAME}-rails']
from: {kind: ImageStreamTag, name: '${APP_NAME}-basic:latest', namespace: '${NAMESPACE}'}
type: ImageChange
- {type: ConfigChange}
- apiVersion: v1
kind: Route
metadata:
labels: {app: '${APP_NAME}'}
name: ${APP_NAME}-route
spec:
host: ${APP_NAME}.${CLOUD_NAME}
tls: {insecureEdgeTerminationPolicy: Allow, termination: edge}
to: {kind: Service, name: '${APP_NAME}-svc'}
- apiVersion: v1
kind: Service
metadata:
labels: {app: '${APP_NAME}'}
name: ${APP_NAME}-svc
spec:
ports:
- {port: 8080, protocol: TCP, targetPort: 8080}
selector: {deploymentconfig: '${APP_NAME}-rails'}
- apiVersion: v1
data:
database-name: ZXJyYXRh
database-password: ZXJyYXRh
database-root-password: YXJOZGsxMjNf
database-user: ZXJyYXRh
kind: Secret
metadata:
labels:
app: ${APP_NAME}
name: et-qe-testing-mysql
namespace: ${NAMESPACE}
type: Opaque
- apiVersion: v1
data:
BREW_BASE_URL: https://brew-qa.usersys.redhat.com/brew
BREW_DOWNLOAD_PATH: http://brew-qa.usersys.redhat.com/brewroot
BREW_XMLRPC_URL: http://brew-qa.usersys.redhat.com/kojihub
ET_PUB_SERVER: pub-e2e.usersys.redhat.com
ET_RPC_BUGZILLA_SERVER: bz-e2e.usersys.redhat.com
ET_RPC_JBOSS_JIRA_URL: https://projects.qe.engineering.redhat.com
ET_RPC_PNTDEVOPS_JIRA_URL: https://projects.qe.engineering.redhat.com
ET_SERVICE_NAME: 0.0.0.0
ET_UMB_BROKER_URL_1: amqps://messaging-devops-broker01.web.qa.ext.phx1.redhat.com:5671
ET_UMB_BROKER_URL_2: amqps://messaging-devops-broker02.web.qa.ext.phx1.redhat.com:5671
LIGHTBLUE_CERT_FILE: /opt/app-root/src/cert/lb-non-prod.crt.pem
LIGHTBLUE_CERT_KEY_FILE: /opt/app-root/src/cert/lb-non-prod.key.pem
LIGHTBLUE_DATA_URL: https://datasvc.periwinkle.qa.redhat.com/rest/data
LIGHTBLUE_SSL_VERIFY_PEER: "true"
RACK_ENV: staging
RAILS_ENV: staging
kind: ConfigMap
metadata:
name: et-qe-testing-settings
namespace: ${NAMESPACE}
- apiVersion: v1
data:
ET_PUB_PASSWORD: ZXJyYXRh
ET_PUB_USER: ZXJyYXRh
ET_RPC_BUGZILLA_PASSWORD: bTJpYl04QXphISE3UQ==
ET_RPC_BUGZILLA_USER: ZXJyYXRhLXhtbHJwY0ByZWRoYXQuY29t
ET_RPC_JBOSS_JIRA_PASSWORD: ZXJyYXRhLXFl
ET_RPC_JBOSS_JIRA_USER: ZXJyYXRhLXFl
ET_RPC_PNTDEVOPS_JIRA_PASSWORD: ZXJyYXRhLXFl
ET_RPC_PNTDEVOPS_JIRA_USER: ZXJyYXRhLXFl
kind: Secret
metadata:
name: et-qe-testing-settings
namespace: ${NAMESPACE}
type: Opaque
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-errata-qe-test-mnt-redhat
namespace: ${NAMESPACE}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 14Gi
storageClassName: dynamic-nfs
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: errata-cert
namespace: ${NAMESPACE}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: dynamic-nfs
- apiVersion: v1
data:
inventory_config.yml: "--- \nerrata_rails_env:
staging\nerrata_rails_root: /opt/app-root/src\nservice_name: 0.0.0.0\n\nerrata_log_level:
warn\nerrata_logger_level: warn\nerrata_mailer_delivery_method: file\nerrata_mailer_smtp_address:
smtp.fakehost.doesnotexist.redhat.com\nerrata_pnt_devops_jira_create_tickets:
True\n\ndefault_settings:\n external_test_run_urls:\n ccat: http://nest.test.redhat.com/mnt/qa/content_test_results/$PUB_TARGET/errata/$TRIGGER_TYPE/$ID/logs/$ERRATA_ID-results.html\n
\ ccat/manual: http://nest.test.redhat.com/mnt/qa/content_test_results/$PUB_TARGET/errata/$TRIGGER_TYPE/$ID/logs/$ERRATA_ID-results.html\n
\ covscan: http://covscan-stage.lab.eng.brq2.redhat.com/covscanhub/waiving/et_mapping/$ID/\n
\ rpmdiff: https://rpmdiff-web.host.qe.eng.pek2.redhat.com/run/$ID/\n product_listings_manager_enabled: True"
kind: ConfigMap
metadata:
name: inventory-config
namespace: ${NAMESPACE}
parameters:
- {name: APP_NAME, value: errata-rails}
- {name: GIT_URL, value: 'https://code.engineering.redhat.com/gerrit/errata-rails'}
- {name: ALL_IN_ONE, value: 'true'}
- {name: AUTH_TYPE, value: basic}
- {name: QE_TESTING, value: 'true'}
- {name: GIT_BRANCH, value: develop}
- {name: RACK_ENV, value: staging}
- {name: RAILS_ENV, value: staging}
- {name: ET_DB_PORT, value: '3306'}
- {name: GIT_SSL_NO_VERIFY, value: 'true'}
- {name: CPU_LIMITS, value: '2'}
- {name: MEM_LIMITS, value: 4Gi}
- {name: CPU_REQUEST, value: '2'}
- {name: MEM_REQUEST, value: 4Gi}
- {name: ET_SECRET, value: et-default-staging-settings}
- {name: ET_CONFIGMAP, value: et-default-staging-settings}
- {name: ET_MYSQL_SECRET, value: et-qe-testing-mysql}
- {name: ET_WEB_PORT, value: '8080'}
- {name: NAMESPACE, value: errata-qe-test}
- {name: ET_S2I_IMAGE, value: 'docker-registry.upshift.redhat.com/errata-qe-test/errata-s2i-httpd'}
- {name: ET_S2I_IMAGE_BRANCH, value: 'latest'}
- {name: BREW_PVC, value: 'pvc-errata-qe-test-mnt-redhat'}
- {name: CLOUD_NAME, value: 'cloud.paas.psi.redhat.com'}