Skip to content

Commit 7509c8d

Browse files
nikhilparmar86Parmaranuds20parmndcasavant
authored
Initial Constellation integration (#97)
* Add preliminary support for the constellation service. Co-authored-by: Parmar <[email protected]> Co-authored-by: anuds <[email protected]> Co-authored-by: parmn <[email protected]> Co-authored-by: casad <[email protected]>
1 parent 6524854 commit 7509c8d

File tree

13 files changed

+183
-13
lines changed

13 files changed

+183
-13
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: v1
3+
name: constellation
4+
version: 0.0.1
5+
description: Pega constellation service
6+
appVersion: 8.5.0
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#Deploy only when the constellation flag has been enabled in the values yaml.
2+
{{ if and .Values.enabled (eq .Values.enabled true) }}
3+
kind: Deployment
4+
apiVersion: apps/v1
5+
metadata:
6+
name: constellation
7+
labels:
8+
app: constellation
9+
spec:
10+
replicas: 2
11+
selector:
12+
matchLabels:
13+
app: constellation
14+
template:
15+
metadata:
16+
labels:
17+
app: constellation
18+
spec:
19+
imagePullSecrets:
20+
- name: {{ template "pegaRegistrySecret" }}
21+
containers:
22+
- name: constellation
23+
imagePullPolicy: {{ .Values.imagePullPolicy }}
24+
image: {{ .Values.image }}
25+
args:
26+
- port=3000
27+
- {{ .Values.logLevel }}
28+
livenessProbe:
29+
httpGet:
30+
path: /c11n/api/v1/ping
31+
readinessProbe:
32+
initialDelaySeconds: 1
33+
httpGet:
34+
path: /c11n/api/v1/ping
35+
ports:
36+
- containerPort: 3000
37+
{{ end }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#Deploy only when the constellation flag has been enabled in the values yaml.
2+
{{ if and .Values.enabled (eq .Values.enabled true) }}
3+
apiVersion: v1
4+
kind: Service
5+
metadata:
6+
name: constellation
7+
labels:
8+
app: constellation
9+
# component: constellation
10+
spec:
11+
selector:
12+
app: constellation
13+
# component: constellation
14+
ports:
15+
- protocol: TCP
16+
port: 3000
17+
targetPort: 3000
18+
type: LoadBalancer
19+
{{ end }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# Parameters for constellation operation:
3+
# Docker repos and tag for image
4+
image: IMAGE_REPO_URL_HERE
5+
# log level : error, warn, info, debug. use error for production
6+
logLevel: info
7+
enabled: false

charts/pega/templates/_pega-deployment.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ spec:
100100
- name: REQUESTOR_PASSIVATION_TIMEOUT
101101
value: "{{ .node.requestor.passivationTimeSec }}"
102102
{{- end }}
103+
{{- if and .root.Values.constellation (eq .root.Values.constellation.enabled true) }}
104+
- name: COSMOS_SETTINGS
105+
value: "Pega-UIEngine/cosmosservicesURI=/c11n"
106+
{{- end }}
103107
{{- if .custom }}
104108
{{- if .custom.env }}
105109
# Additional custom env vars

charts/pega/templates/_pega-eks-ingress.tpl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,15 @@ spec:
5858
# To access the below service, along with {{ .node.domain }}, alb http port also has to be provided in the URL.
5959
- host: {{ template "domainName" dict "node" .node }}
6060
http:
61-
paths:
62-
- backend:
63-
serviceName: {{ .name }}
61+
paths:
62+
{{ if and .root.Values.constellation (eq .root.Values.constellation.enabled true) }}
63+
- path: /c11n
64+
backend:
65+
serviceName: constellation
66+
servicePort: 3000
67+
{{ end }}
68+
- backend:
69+
serviceName: {{ .name }}
6470
servicePort: {{ .node.service.port }}
6571
---
6672
{{- end }}

charts/pega/templates/_pega-gke-ingress.tpl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ spec:
3737
# To access the below service, along with {{ .node.domain }}, http/https port also has to be provided in the URL.
3838
- host: {{ template "domainName" dict "node" .node }}
3939
http:
40-
paths:
41-
- backend:
42-
serviceName: {{ .name }}
40+
paths:
41+
{{ if and .root.Values.constellation (eq .root.Values.constellation.enabled true) }}
42+
- path: /c11n
43+
backend:
44+
serviceName: constellation
45+
servicePort: 3000
46+
{{ end }}
47+
- backend:
48+
serviceName: {{ .name }}
4349
servicePort: {{ .node.service.port }}
4450
---
4551
{{- end }}

charts/pega/templates/_pega-k8s-ingress.tpl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ spec:
2525
# To access the below service, along with {{ .node.domain }}, traefik http port also has to be provided in the URL.
2626
- host: {{ template "domainName" dict "node" .node }}
2727
http:
28-
paths:
29-
- backend:
30-
serviceName: {{ .name }}
28+
paths:
29+
{{ if and .root.Values.constellation (eq .root.Values.constellation.enabled true) }}
30+
- path: /c11n
31+
backend:
32+
serviceName: constellation
33+
servicePort: 3000
34+
{{ end }}
35+
- backend:
36+
serviceName: {{ .name }}
3137
servicePort: {{ .node.service.port }}
3238
---
3339
{{- end }}

charts/pega/values-large.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ global:
101101
# For GKE to use static IP for load balancer, use kubernetes.io/ingress.global-static-ip-name: <global-static-ip-name>
102102
ssl_annotation:
103103

104+
104105
replicas: 1
105106
javaOpts: ""
106-
107107
pegaDiagnosticUser: ""
108108
pegaDiagnosticPassword: ""
109109

charts/pega/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ global:
9797

9898
replicas: 1
9999
javaOpts: ""
100-
101100
pegaDiagnosticUser: ""
102101
pegaDiagnosticPassword: ""
103102

0 commit comments

Comments
 (0)