This repository has been archived by the owner on Nov 27, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
syndesis-dev.yml
1126 lines (1093 loc) · 28.5 KB
/
syndesis-dev.yml
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
# Do not edit, this is a generated file. To regenerate, run: ./generator/run.sh
#
apiVersion: v1
kind: Template
metadata:
name: syndesis-dev
#
# Template flavor:
#
# Allow localhost refs: true
# Use docker images: true
# Ephemeral: false
# Without Probes: false
# Atlasmap Tag: latest
# Syndesis Tag: latest
# Restricted environment: false
#
labels:
app: syndesis
parameters:
# Parameters with no defaults (has to be be provided when template is applied):
- name: ROUTE_HOSTNAME
description: The external hostname to access Syndesis
required: true
# Parameters with defaults:
- name: OPENSHIFT_MASTER
description: Public OpenShift master address
value: https://localhost:8443
required: true
- name: OPENSHIFT_OAUTH_CLIENT_ID
description: OpenShift OAuth client ID
value: syndesis
required: true
- name: OPENSHIFT_OAUTH_CLIENT_SECRET
description: OpenShift OAuth client secret
generate: expression
from: "[a-zA-Z0-9]{64}"
required: true
- name: OPENSHIFT_OAUTH_DEFAULT_SCOPES
description: OpenShift OAuth default scopes
value: "user:full"
required: true
- description: Maximum amount of memory the PostgreSQL container can use.
displayName: Memory Limit
name: POSTGRESQL_MEMORY_LIMIT
value: 255Mi
- description: The OpenShift Namespace where the PostgreSQL ImageStream resides.
displayName: Namespace
name: POSTGRESQL_IMAGE_STREAM_NAMESPACE
value: openshift
- description: Username for PostgreSQL user that will be used for accessing the database.
displayName: PostgreSQL Connection Username
name: POSTGRESQL_USER
value: syndesis
- description: Password for the PostgreSQL connection user.
displayName: PostgreSQL Connection Password
from: '[a-zA-Z0-9]{16}'
generate: expression
name: POSTGRESQL_PASSWORD
required: true
- description: Name of the PostgreSQL database accessed.
displayName: PostgreSQL Database Name
name: POSTGRESQL_DATABASE
required: true
value: syndesis
- description: Volume space available for PostgreSQL data, e.g. 512Mi, 2Gi.
displayName: Volume Capacity
name: POSTGRESQL_VOLUME_CAPACITY
required: true
value: 1Gi
- description: Password for the PostgreSQL sampledb user.
displayName: PostgreSQL SampleDB Connection Password
from: '[a-zA-Z0-9]{16}'
generate: expression
name: POSTGRESQL_SAMPLEDB_PASSWORD
required: true
- description: Enables test-support endpoint on backend API
displayName: Test Support Enabled
name: TEST_SUPPORT_ENABLED
required: true
value: "false"
- description: Enables starting up with demo data
displayName: Demo Data Enabled
name: DEMO_DATA_ENABLED
required: true
value: "false"
- description: Registry from where to fetch Syndesis images
displayName: Syndesis Image Registry
name: SYNDESIS_REGISTRY
required: true
value: 'docker.io'
- description: Should deployment of integrations be enabled?
displayName: Enable Integration Deployment
name: CONTROLLERS_INTEGRATION_ENABLED
value: 'true'
- description: Namespace containing image streams
displayName: Image Stream Namespace
name: IMAGE_STREAM_NAMESPACE
value: ''
- description: Secret to use to encrypt oauth cookies
displayName: OAuth Cookie Secret
name: OAUTH_COOKIE_SECRET
generate: expression
from: '[a-zA-Z0-9]{32}'
- name: SYNDESIS_ENCRYPT_KEY
description: The encryption key used to encrypt/decrypt stored secrets
generate: expression
from: "[a-zA-Z0-9]{64}"
required: true
message: |-
Syndesis is deployed to ${ROUTE_HOSTNAME}.
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: s2i-java
labels:
app: syndesis
component: s2i-java
spec:
tags:
- from:
kind: DockerImage
name: fabric8/s2i-java:2.0
importPolicy:
scheduled: true
name: "2.0"
- apiVersion: v1
kind: Secret
metadata:
name: syndesis-oauth-proxy-cookie-secret
labels:
app: syndesis
stringData:
oauthCookieSecret: ${OAUTH_COOKIE_SECRET}
- apiVersion: v1
kind: Service
metadata:
name: syndesis-ui
labels:
app: syndesis
component: syndesis-ui
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: syndesis
component: syndesis-ui
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: syndesis
component: syndesis-ui
name: syndesis-ui
spec:
replicas: 1
selector:
app: syndesis
component: syndesis-ui
deploymentconfig: syndesis-ui
strategy:
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
type: Rolling
template:
metadata:
labels:
app: syndesis
component: syndesis-ui
deploymentconfig: syndesis-ui
spec:
containers:
- name: syndesis-ui
image: ${SYNDESIS_REGISTRY}/syndesis/syndesis-ui:latest
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: "/"
port: 8080
initialDelaySeconds: 30
readinessProbe:
httpGet:
path: "/"
port: 8080
initialDelaySeconds: 1
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /usr/share/nginx/html/config
name: config-volume
# Set to burstable with a low memory footprint to start (50 Mi)
resources:
limits:
memory: 255Mi
requests:
memory: 50Mi
volumes:
- configMap:
name: syndesis-ui-config
name: config-volume
triggers:
- type: ConfigChange
- apiVersion: v1
kind: ConfigMap
metadata:
name: syndesis-ui-config
labels:
app: syndesis
component: syndesis-ui
data:
config.json: |
{
"apiEndpoint": "https://${ROUTE_HOSTNAME}/api/v1",
"title": "Syndesis",
"datamapper": {
"baseJavaInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/v2/atlas/java/",
"baseXMLInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/v2/atlas/xml/",
"baseJSONInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/v2/atlas/json/",
"baseMappingServiceUrl": "https://${ROUTE_HOSTNAME}/v2/atlas/"
},
"branding": {
"logoWhiteBg": "assets/images/syndesis-logo-svg-white.svg",
"logoDarkBg": "assets/images/syndesis-logo-svg-white.svg",
"iconWhiteBg": "assets/images/glasses_logo_square.png",
"iconDarkBg": "assets/images/glasses_logo_square.png",
"appName": "Syndesis",
"favicon32": "/favicon-32x32.png",
"favicon16": "/favicon-16x16.png",
"touchIcon": "/apple-touch-icon.png"
}
}
- apiVersion: v1
kind: ServiceAccount
metadata:
name: syndesis-atlasmap
labels:
app: syndesis
component: syndesis-atlasmap
- apiVersion: v1
kind: Service
metadata:
labels:
app: syndesis
component: syndesis-atlasmap
name: syndesis-atlasmap
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: syndesis
component: syndesis-atlasmap
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: syndesis
component: syndesis-atlasmap
name: syndesis-atlasmap
spec:
replicas: 1
selector:
app: syndesis
component: syndesis-atlasmap
deploymentconfig: syndesis-atlasmap
strategy:
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
type: Recreate
template:
metadata:
labels:
app: syndesis
component: syndesis-atlasmap
deploymentconfig: syndesis-atlasmap
spec:
serviceAccountName: syndesis-atlasmap
containers:
- name: atlasmap
env:
- name: HOME
value: /deployments
- name: JAVA_TOOL_OPTIONS
value: '-Duser.home=/deployments -Duser.name=jboss'
- name: AB_JOLOKIA_OFF
value: "true"
- name: JAVA_APP_DIR
value: /deployments
- name: AB_OFF
value: "true"
- name: JAVA_OPTIONS
value: "-Djava.net.preferIPv4Stack=true -Duser.home=/tmp"
image: ${SYNDESIS_REGISTRY}/atlasmap/atlasmap:latest
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
path: "/health"
port: 8181
initialDelaySeconds: 10
livenessProbe:
httpGet:
path: "/health"
port: 8181
initialDelaySeconds: 180
ports:
- containerPort: 8080
name: http
- containerPort: 9779
name: prometheus
- containerPort: 8778
name: jolokia
volumeMounts:
- name: config-volume
mountPath: /deployments/config
resources:
limits:
memory: 612Mi
requests:
memory: 255Mi
volumes:
- name: config-volume
configMap:
name: syndesis-atlasmap-config
triggers:
- type: ConfigChange
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: syndesis
component: syndesis-atlasmap
name: syndesis-atlasmap-config
data:
application.yml: |-
cors:
allowedOrigins: http://localhost:4200, https://localhost:4200, https://${ROUTE_HOSTNAME}
spring:
zipkin:
enabled: false
security:
basic:
enabled: false
management:
port: 8181
security:
enabled: true
endpoints:
health:
sensitive: false
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: syndesis
component: syndesis-db
name: syndesis-sampledb-config
data:
add-sample-db.sh: |
#!/bin/bash
until bash -c "psql -h 127.0.0.1 -U $POSTGRESQL_USER -q -d $POSTGRESQL_DATABASE -c 'SELECT 1'"; do
echo "Waiting for Postgres server..."
sleep 1
done
echo "----- creating sampledb"
psql <<EOF
CREATE DATABASE sampledb;
CREATE USER sampledb WITH PASSWORD '$POSTGRESQL_SAMPLEDB_PASSWORD';
GRANT ALL PRIVILEGES ON DATABASE sampledb to sampledb;
EOF
psql -d sampledb -U sampledb <<'EOF'
CREATE TABLE IF NOT EXISTS todo (id SERIAL PRIMARY KEY, task VARCHAR, completed INTEGER);
CREATE OR REPLACE FUNCTION add_lead(
first_and_last_name varchar,
company varchar,
phone varchar,
email varchar,
lead_source varchar,
lead_status varchar,
rating varchar)
RETURNS void
LANGUAGE 'plpgsql'
AS $BODY$
DECLARE
task varchar;
BEGIN
task := concat(lead_status || ' ', 'Lead: Please contact ', first_and_last_name, ' from ' || company, ' via phone: ' || phone, ' via email: ' || email, '. ', 'Lead is from ' || lead_source, '. Rating: ' || rating, '.');
insert into todo(task,completed) VALUES (task,0);
END;
$BODY$;
EOF
echo "----- sampledb created"
postStart.sh: |
#!/bin/bash
/var/lib/pgsql/sampledb/add-sample-db.sh &> /proc/1/fd/1
- apiVersion: v1
kind: Service
metadata:
name: syndesis-db
labels:
app: syndesis
component: syndesis-db
spec:
ports:
- name: postgresql
nodePort: 0
port: 5432
protocol: TCP
targetPort: 5432
selector:
app: syndesis
component: syndesis-db
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: syndesis-db
labels:
app: syndesis
component: syndesis-db
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: ${POSTGRESQL_VOLUME_CAPACITY}
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: syndesis-db
labels:
app: syndesis
component: syndesis-db
spec:
replicas: 1
selector:
app: syndesis
component: syndesis-db
strategy:
type: Recreate
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
template:
metadata:
labels:
app: syndesis
component: syndesis-db
spec:
containers:
- capabilities: {}
env:
- name: POSTGRESQL_USER
value: ${POSTGRESQL_USER}
- name: POSTGRESQL_PASSWORD
value: ${POSTGRESQL_PASSWORD}
- name: POSTGRESQL_DATABASE
value: ${POSTGRESQL_DATABASE}
- name: POSTGRESQL_SAMPLEDB_PASSWORD
value: ${POSTGRESQL_SAMPLEDB_PASSWORD}
image: ' '
imagePullPolicy: IfNotPresent
lifecycle:
postStart:
exec:
command:
- /bin/sh
- -c
- /var/lib/pgsql/sampledb/postStart.sh
livenessProbe:
initialDelaySeconds: 60
tcpSocket:
port: 5432
name: postgresql
ports:
- containerPort: 5432
protocol: TCP
readinessProbe:
exec:
command:
- /bin/sh
- -i
- -c
- psql -h 127.0.0.1 -U $POSTGRESQL_USER -q -d $POSTGRESQL_DATABASE -c 'SELECT 1'
initialDelaySeconds: 5
# DB QoS class is "Guaranteed" (requests == limits)
# Note: On OSO there is no Guaranteed class, its always burstable
resources:
limits:
memory: ${POSTGRESQL_MEMORY_LIMIT}
requests:
memory: ${POSTGRESQL_MEMORY_LIMIT}
volumeMounts:
- mountPath: /var/lib/pgsql/data
name: syndesis-db-data
- mountPath: /var/lib/pgsql/sampledb
name: syndesis-sampledb-config
volumes:
- name: syndesis-db-data
persistentVolumeClaim:
claimName: syndesis-db
- configMap:
defaultMode: 511
name: syndesis-sampledb-config
name: syndesis-sampledb-config
triggers:
- imageChangeParams:
automatic: true
containerNames:
- postgresql
from:
kind: ImageStreamTag
name: postgresql:9.5
namespace: ${POSTGRESQL_IMAGE_STREAM_NAMESPACE}
type: ImageChange
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: syndesis
component: syndesis-oauthproxy
annotations:
service.alpha.openshift.io/serving-cert-secret-name: syndesis-oauthproxy-tls
name: syndesis-oauthproxy
spec:
ports:
- port: 8443
protocol: TCP
targetPort: 8443
selector:
app: syndesis
component: syndesis-oauthproxy
- apiVersion: v1
kind: Route
metadata:
labels:
app: syndesis
name: syndesis
spec:
host: ${ROUTE_HOSTNAME}
port:
targetPort: 8443
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: syndesis-oauthproxy
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: syndesis
component: syndesis-oauthproxy
name: syndesis-oauthproxy
spec:
replicas: 1
selector:
app: syndesis
component: syndesis-oauthproxy
deploymentconfig: syndesis-oauthproxy
strategy:
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
type: Recreate
template:
metadata:
labels:
app: syndesis
component: syndesis-oauthproxy
deploymentconfig: syndesis-oauthproxy
spec:
containers:
- name: syndesis-oauthproxy
image: ${SYNDESIS_REGISTRY}/openshift/oauth-proxy:v1.1.0
args:
- --http-address=:8443
- --https-address=:8444
- --provider=openshift
- --client-id=${OPENSHIFT_OAUTH_CLIENT_ID}
- --client-secret=${OPENSHIFT_OAUTH_CLIENT_SECRET}
- --upstream=http://syndesis-rest/api/
- --upstream=http://syndesis-rest/mapper/
- --upstream=http://syndesis-atlasmap/v2/atlas/
- --upstream=http://syndesis-ui/
- --tls-cert=/etc/tls/private/tls.crt
- --tls-key=/etc/tls/private/tls.key
- --cookie-secret=$(OAUTH_COOKIE_SECRET)
- --pass-access-token
- --skip-provider-button
- --skip-auth-regex=/api/v1/swagger.*
- --skip-auth-regex=/api/v1/index.html
- --skip-auth-regex=/api/v1/credentials/callback
- --skip-auth-preflight
- --openshift-ca=/etc/pki/tls/certs/ca-bundle.crt
- --openshift-ca=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
env:
- name: OAUTH_COOKIE_SECRET
valueFrom:
secretKeyRef:
name: syndesis-oauth-proxy-cookie-secret
key: oauthCookieSecret
ports:
- containerPort: 8443
name: public
protocol: TCP
readinessProbe:
tcpSocket:
port: 8443
livenessProbe:
tcpSocket:
port: 8443
volumeMounts:
- mountPath: /etc/tls/private
name: syndesis-oauthproxy-tls
resources:
limits:
memory: 200Mi
requests:
memory: 20Mi
volumes:
- name: syndesis-oauthproxy-tls
secret:
secretName: syndesis-oauthproxy-tls
triggers:
- type: ConfigChange
- apiVersion: v1
kind: ServiceAccount
metadata:
name: syndesis-rest
labels:
app: syndesis
component: syndesis-rest
- apiVersion: v1
kind: ServiceAccount
metadata:
name: syndesis-integration
labels:
app: syndesis
component: syndesis-rest
- apiVersion: v1
kind: Service
metadata:
labels:
app: syndesis
component: syndesis-rest
name: syndesis-rest
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: syndesis
component: syndesis-rest
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: syndesis
component: syndesis-rest
name: syndesis-rest
spec:
replicas: 1
selector:
app: syndesis
component: syndesis-rest
deploymentconfig: syndesis-rest
strategy:
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
type: Recreate
template:
metadata:
labels:
app: syndesis
component: syndesis-rest
deploymentconfig: syndesis-rest
spec:
serviceAccountName: syndesis-rest
containers:
- name: syndesis-rest
env:
- name: AB_JOLOKIA_OFF
value: "true"
- name: JAVA_APP_DIR
value: /deployments
- name: AB_OFF
value: "true"
- name: JAVA_OPTIONS
value: "-Djava.net.preferIPv4Stack=true -Duser.home=/tmp"
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: ENDPOINTS_TEST_SUPPORT_ENABLED
value: ${TEST_SUPPORT_ENABLED}
- name: CONTROLLERS_INTEGRATION_ENABLED
value: ${CONTROLLERS_INTEGRATION_ENABLED}
- name: POSTGRESQL_SAMPLEDB_PASSWORD
value: ${POSTGRESQL_SAMPLEDB_PASSWORD}
image: ${SYNDESIS_REGISTRY}/syndesis/syndesis-rest:latest
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
port: 8080
path: /api/v1/version
initialDelaySeconds: 180
readinessProbe:
httpGet:
path: "/health"
port: 8181
initialDelaySeconds: 10
ports:
- containerPort: 8080
name: http
- containerPort: 9779
name: prometheus
- containerPort: 8778
name: jolokia
workingDir: /deployments
volumeMounts:
- name: config-volume
mountPath: /deployments/config
# Set QoS class to "Guaranteed" (limits == requests)
# This doesn't work on OSO as there is a fixed ratio
# from limit to resource (80% currently). 'requests' is ignored there
resources:
limits:
memory: 612Mi
requests:
memory: 256Mi
volumes:
- name: config-volume
configMap:
name: syndesis-rest-config
triggers:
- type: ConfigChange
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: syndesis
component: syndesis-rest
name: syndesis-rest-config
data:
application.yml: |-
deployment:
load-demo-data: ${DEMO_DATA_ENABLED}
cors:
allowedOrigins: http://localhost:4200, https://localhost:4200, https://${ROUTE_HOSTNAME}
cache:
cluster:
name: SyndesisCluster
max:
entries: 100
encrypt:
key: ${SYNDESIS_ENCRYPT_KEY}
spring:
zipkin:
enabled: false
datasource:
url: jdbc:postgresql://syndesis-db:5432/syndesis?sslmode=disable
username: ${POSTGRESQL_USER}
password: ${POSTGRESQL_PASSWORD}
driver-class-name: org.postgresql.Driver
security:
basic:
enabled: false
management:
port: 8181
security:
enabled: true
endpoints:
health:
sensitive: false
jsondb:
enabled: true
openshift:
apiBaseUrl: ${OPENSHIFT_MASTER}/oapi/v1
namespace: ${NAMESPACE}
imageStreamNamespace: ${IMAGE_STREAM_NAMESPACE}
builderImageStreamTag: s2i-java:2.0
deploymentMemoryRequestMi: 200
deploymentMemoryLimitMi: 512
mavenOptions: "-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m"
dao:
kind: jsondb
- apiVersion: v1
kind: Service
metadata:
labels:
app: syndesis
component: syndesis-verifier
name: syndesis-verifier
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: syndesis
component: syndesis-verifier
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: syndesis
component: syndesis-verifier
name: syndesis-verifier
spec:
replicas: 1
selector:
app: syndesis
component: syndesis-verifier
deploymentconfig: syndesis-verifier
strategy:
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
type: Recreate
template:
metadata:
labels:
app: syndesis
component: syndesis-verifier
deploymentconfig: syndesis-verifier
spec:
serviceAccountName: syndesis-rest
containers:
- name: syndesis-verifier
env:
- name: JAVA_APP_DIR
value: /deployments
- name: JAVA_OPTIONS
value: "-Djava.net.preferIPv4Stack=true -Duser.home=/tmp"
image: ${SYNDESIS_REGISTRY}/syndesis/syndesis-verifier:latest
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
path: /health
port: 8181
scheme: HTTP
initialDelaySeconds: 10
livenessProbe:
httpGet:
path: /health
port: 8181
scheme: HTTP
initialDelaySeconds: 180
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 9779
name: prometheus
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
resources:
limits:
memory: 512Mi
requests:
memory: 280Mi
# spring-boot automatically picks up application.yml from ./config
workingDir: /deployments
volumeMounts:
- name: config-volume
mountPath: /deployments/config
volumes:
- name: config-volume
configMap:
name: syndesis-verifier-config
triggers:
- type: ConfigChange
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: syndesis
component: syndesis-verifier
name: syndesis-verifier-config
data:
application.yml: |-
server:
port: 8080
# We only want the status, not the full data. Hence security on, sensitive off.
# See https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-monitoring.html
# For details
management:
port: 8181
security:
enabled: true
endpoints:
health:
sensitive: false
- apiVersion: v1
kind: Service
metadata:
labels:
app: todo
component: todo
name: todo
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: todo
component: todo
- apiVersion: v1
kind: Route
metadata:
labels:
app: todo
component: todo
name: todo
spec:
host: todo-${ROUTE_HOSTNAME}
path: /
port:
targetPort: 8080
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: todo
weight: 100
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: todo
name: todo
spec:
lookupPolicy:
local: false
status:
tags: