Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 24d1f84

Browse files
committed
working helm chart
1 parent 1b6765d commit 24d1f84

File tree

109 files changed

+8327
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+8327
-136
lines changed

Fineract-CN-Helm/fineract-cn/Chart.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ name: fineract-cn
55
version: 1.0.0-SNAPSHOT
66
dependencies:
77
- name: postgresql
8-
version: 9.5
8+
version: 11.9.5
99
repository: "https://charts.bitnami.com/bitnami"
10-
alias: postgres
10+
alias: postgres
11+
- name: cassandra
12+
version: 9.7.6
13+
repository: "https://charts.bitnami.com/bitnami"
14+
alias: cassandra
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
dependencies:
22
- name: postgresql
33
repository: https://charts.bitnami.com/bitnami
4-
version: 9.5.0
5-
digest: sha256:08c7f73b05c9b67ba47786a630ff8c2bae0cc07e752938e186f81417e62e67d8
6-
generated: "2022-04-19T02:45:02.064569341+05:30"
4+
version: 11.9.5
5+
- name: cassandra
6+
repository: https://charts.bitnami.com/bitnami
7+
version: 9.7.6
8+
digest: sha256:e69d7a985cc21fb14e61fcb651e412d6a7d0fa0bc5e5ecde56dbc2c2d01855ec
9+
generated: "2023-01-19T20:49:48.565065+05:30"

Fineract-CN-Helm/fineract-cn/templates/accounting.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.accounting.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,14 @@ spec:
3637
containers:
3738
- name: fineract-cn-accounting
3839
image: {{ .Values.accounting.image }}
39-
imagePullPolicy: IfNotPresent
40+
resources:
41+
limits:
42+
memory: "{{ .Values.accounting.limits.memory }}"
43+
cpu: "{{ .Values.accounting.limits.cpu }}"
44+
requests:
45+
memory: "{{ .Values.accounting.requests.memory }}"
46+
cpu: "{{ .Values.accounting.requests.cpu }}"
47+
imagePullPolicy: Always
4048
envFrom:
4149
- configMapRef:
4250
name: external-tools-config
@@ -76,3 +84,4 @@ spec:
7684
name: secret-config
7785
ports:
7886
- containerPort: 2025
87+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/activemq.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.activemq.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -40,7 +41,7 @@ spec:
4041
spec:
4142
containers:
4243
- image: {{ .Values.activemq.image }}
43-
imagePullPolicy: IfNotPresent
44+
imagePullPolicy: Always
4445
name: activemq
4546
ports:
4647
- containerPort: 61616
@@ -58,4 +59,4 @@ spec:
5859
timeoutSeconds: 10
5960
periodSeconds: 60
6061
failureThreshold: 3
61-
62+
{{- end }}
Lines changed: 77 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.cassandra.enabled }}
12
# apiVersion: v1
23
# kind: PersistentVolume
34
# metadata:
@@ -15,76 +16,80 @@
1516

1617
# ---
1718

18-
apiVersion: v1
19-
kind: PersistentVolumeClaim
20-
metadata:
21-
name: cassandra-pvc
22-
namespace: {{ .Values.namespace }}
23-
spec:
24-
accessModes:
25-
- ReadWriteOnce
26-
resources:
27-
requests:
28-
storage: 10Gi
29-
# volumeName: cassandra-pv
19+
#apiVersion: v1
20+
#kind: PersistentVolumeClaim
21+
#metadata:
22+
# name: cassandra-pvc
23+
# namespace: {{ .Values.namespace }}
24+
#spec:
25+
# accessModes:
26+
# - ReadWriteOnce
27+
# resources:
28+
# requests:
29+
# storage: 2Gi
30+
# limits:
31+
# cpu: "500m"
32+
# volumeName: cassandra-pv
3033

31-
---
32-
33-
apiVersion: v1
34-
kind: Service
35-
metadata:
36-
name: cassandra-cluster
37-
namespace: {{ .Values.namespace }}
38-
spec:
39-
selector:
40-
app: cassandra
41-
ports:
42-
- port: 9042
43-
targetPort: 9042
44-
type: LoadBalancer
45-
46-
---
47-
48-
apiVersion: apps/v1
49-
kind: Deployment
50-
metadata:
51-
name: cassandra-cluster
52-
namespace: {{ .Values.namespace }}
53-
spec:
54-
replicas: 1
55-
selector:
56-
matchLabels:
57-
app: cassandra
58-
strategy:
59-
rollingUpdate:
60-
maxSurge: 25%
61-
maxUnavailable: 25%
62-
type: RollingUpdate
63-
template:
64-
metadata:
65-
labels:
66-
app: cassandra
67-
spec:
68-
containers:
69-
- image: {{ .Values.cassandra.image }}
70-
imagePullPolicy: IfNotPresent
71-
name: cassandra
72-
ports:
73-
- containerPort: 9042
74-
name: cql
75-
livenessProbe:
76-
exec:
77-
command:
78-
- cqlsh
79-
- --help
80-
initialDelaySeconds: 10
81-
timeoutSeconds: 1
82-
periodSeconds: 10
83-
failureThreshold: 3
84-
volumeMounts:
85-
- mountPath: /var/lib/cassandra
86-
name: cassandra-storage
87-
volumes:
88-
- name: cassandra-storage
89-
persistentVolumeClaim:
90-
claimName: cassandra-pvc
34+
#---
35+
#
36+
#apiVersion: v1
37+
#kind: Service
38+
#metadata:
39+
# name: cassandra-cluster
40+
# namespace: {{ .Values.namespace }}
41+
#spec:
42+
# selector:
43+
# app: cassandra
44+
# ports:
45+
# - port: 9042
46+
# targetPort: 9042
47+
# type: LoadBalancer
48+
#
49+
#---
50+
#
51+
#apiVersion: apps/v1
52+
#kind: Deployment
53+
#metadata:
54+
# name: cassandra-cluster
55+
# namespace: {{ .Values.namespace }}
56+
#spec:
57+
# replicas: 1
58+
# selector:
59+
# matchLabels:
60+
# app: cassandra
61+
# strategy:
62+
# rollingUpdate:
63+
# maxSurge: 25%
64+
# maxUnavailable: 25%
65+
# type: RollingUpdate
66+
# template:
67+
# metadata:
68+
# labels:
69+
# app: cassandra
70+
# spec:
71+
# containers:
72+
# - image: {{ .Values.cassandra.image }}
73+
# imagePullPolicy: Always
74+
#
75+
# name: cassandra
76+
# ports:
77+
# - containerPort: 9042
78+
# name: cql
79+
# livenessProbe:
80+
# exec:
81+
# command:
82+
# - cqlsh
83+
# - --help
84+
# initialDelaySeconds: 10
85+
# timeoutSeconds: 1
86+
# periodSeconds: 10
87+
# failureThreshold: 3
88+
# volumeMounts:
89+
# - mountPath: /var/lib/cassandra
90+
# name: cassandra-storage
91+
# volumes:
92+
# - name: cassandra-storage
93+
# persistentVolumeClaim:
94+
# claimName: cassandra-pvc
95+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ data:
3939
keycloak.bearer-only: "true"
4040
conf.enableAccountLevelAccessVerification: "false"
4141
fin.keycloak.realm.publicKey: "keycloak-rsa-public-key"
42-
keycloak.use-resource-role-mappings: "true"
42+
keycloak.use-resource-role-mappings: "true"
43+
spring.profiles.active: "cassandra"
44+
spring.autoconfigure.exclude: "org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration"
45+
authentication.enabled: "false"

Fineract-CN-Helm/fineract-cn/templates/customer.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.customer.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,7 @@ spec:
3637
containers:
3738
- name: customer-ms
3839
image: {{ .Values.customer.image }}
39-
imagePullPolicy: IfNotPresent
40+
imagePullPolicy: Always
4041
envFrom:
4142
- configMapRef:
4243
name: external-tools-config
@@ -76,3 +77,4 @@ spec:
7677
name: secret-config
7778
ports:
7879
- containerPort: 2024
80+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/deposit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.deposit.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,7 @@ spec:
3637
containers:
3738
- name: deposit-ms
3839
image: {{ .Values.deposit.image }}
39-
imagePullPolicy: IfNotPresent
40+
imagePullPolicy: Always
4041
envFrom:
4142
- configMapRef:
4243
name: external-tools-config
@@ -76,3 +77,4 @@ spec:
7677
name: secret-config
7778
ports:
7879
- containerPort: 2027
80+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/group.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.group.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,7 @@ spec:
3637
containers:
3738
- name: group-ms
3839
image: {{ .Values.group.image }}
39-
imagePullPolicy: IfNotPresent
40+
imagePullPolicy: Always
4041
envFrom:
4142
- configMapRef:
4243
name: external-tools-config
@@ -76,3 +77,4 @@ spec:
7677
name: secret-config
7778
ports:
7879
- containerPort: 2032
80+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/identity.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.identity.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,14 @@ spec:
3637
containers:
3738
- name: identity-ms
3839
image: {{ .Values.identity.image }}
39-
imagePullPolicy: IfNotPresent
40+
resources:
41+
limits:
42+
memory: "{{ .Values.identity.limits.memory }}"
43+
cpu: "{{ .Values.identity.limits.cpu }}"
44+
requests:
45+
memory: "{{ .Values.identity.requests.memory }}"
46+
cpu: "{{ .Values.identity.requests.cpu }}"
47+
imagePullPolicy: Always
4048
envFrom:
4149
- configMapRef:
4250
name: external-tools-config
@@ -78,3 +86,4 @@ spec:
7886
name: secret-config
7987
ports:
8088
- containerPort: 2021
89+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/ingress.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
# nginx.ingress.kubernetes.io/backend-protocol: HTTP
1010
spec:
1111
rules:
12-
- host: "3813e012-us-east.lb.appdomain.cloud"
12+
- host: "fineract-cn.sandbox.fynarfin.io"
1313
http:
1414
paths:
1515
- path: /provisioner/v1/
@@ -109,5 +109,4 @@ spec:
109109
service:
110110
name: notifications-service
111111
port:
112-
number: 2033
113-
112+
number: 2033

Fineract-CN-Helm/fineract-cn/templates/notifications.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.notifications.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,7 @@ spec:
3637
containers:
3738
- name: notifications-ms
3839
image: {{ .Values.notifications.image }}
39-
imagePullPolicy: IfNotPresent
40+
imagePullPolicy: Always
4041
envFrom:
4142
- configMapRef:
4243
name: external-tools-config
@@ -76,3 +77,4 @@ spec:
7677
name: secret-config
7778
ports:
7879
- containerPort: 2033
80+
{{- end }}

Fineract-CN-Helm/fineract-cn/templates/office.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.office.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -36,7 +37,7 @@ spec:
3637
containers:
3738
- name: office-ms
3839
image: {{ .Values.office.image }}
39-
imagePullPolicy: IfNotPresent
40+
imagePullPolicy: Always
4041
envFrom:
4142
- configMapRef:
4243
name: external-tools-config
@@ -76,3 +77,4 @@ spec:
7677
name: secret-config
7778
ports:
7879
- containerPort: 2023
80+
{{- end }}

0 commit comments

Comments
 (0)