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

working helm chart #27

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Fineract-CN-Helm/fineract-cn/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ name: fineract-cn
version: 1.0.0-SNAPSHOT
dependencies:
- name: postgresql
version: 9.5
version: 11.9.5
repository: "https://charts.bitnami.com/bitnami"
alias: postgres
alias: postgres
- name: cassandra
version: 9.7.6
repository: "https://charts.bitnami.com/bitnami"
alias: cassandra
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 6 additions & 3 deletions Fineract-CN-Helm/fineract-cn/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 9.5.0
digest: sha256:08c7f73b05c9b67ba47786a630ff8c2bae0cc07e752938e186f81417e62e67d8
generated: "2022-04-19T02:45:02.064569341+05:30"
version: 11.9.5
- name: cassandra
repository: https://charts.bitnami.com/bitnami
version: 9.7.6
digest: sha256:e69d7a985cc21fb14e61fcb651e412d6a7d0fa0bc5e5ecde56dbc2c2d01855ec
generated: "2023-01-19T20:49:48.565065+05:30"
11 changes: 10 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/accounting.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.accounting.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,14 @@ spec:
containers:
- name: fineract-cn-accounting
image: {{ .Values.accounting.image }}
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "{{ .Values.accounting.limits.memory }}"
cpu: "{{ .Values.accounting.limits.cpu }}"
requests:
memory: "{{ .Values.accounting.requests.memory }}"
cpu: "{{ .Values.accounting.requests.cpu }}"
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -76,3 +84,4 @@ spec:
name: secret-config
ports:
- containerPort: 2025
{{- end }}
5 changes: 3 additions & 2 deletions Fineract-CN-Helm/fineract-cn/templates/activemq.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.activemq.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -40,7 +41,7 @@ spec:
spec:
containers:
- image: {{ .Values.activemq.image }}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
name: activemq
ports:
- containerPort: 61616
Expand All @@ -58,4 +59,4 @@ spec:
timeoutSeconds: 10
periodSeconds: 60
failureThreshold: 3

{{- end }}
149 changes: 77 additions & 72 deletions Fineract-CN-Helm/fineract-cn/templates/cassandra.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.cassandra.enabled }}
# apiVersion: v1
# kind: PersistentVolume
# metadata:
Expand All @@ -15,76 +16,80 @@

# ---

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cassandra-pvc
namespace: {{ .Values.namespace }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
# volumeName: cassandra-pv
#apiVersion: v1
#kind: PersistentVolumeClaim
#metadata:
# name: cassandra-pvc
# namespace: {{ .Values.namespace }}
#spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 2Gi
# limits:
# cpu: "500m"
# volumeName: cassandra-pv

---

apiVersion: v1
kind: Service
metadata:
name: cassandra-cluster
namespace: {{ .Values.namespace }}
spec:
selector:
app: cassandra
ports:
- port: 9042
targetPort: 9042
type: LoadBalancer

---

apiVersion: apps/v1
kind: Deployment
metadata:
name: cassandra-cluster
namespace: {{ .Values.namespace }}
spec:
replicas: 1
selector:
matchLabels:
app: cassandra
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: cassandra
spec:
containers:
- image: {{ .Values.cassandra.image }}
imagePullPolicy: IfNotPresent
name: cassandra
ports:
- containerPort: 9042
name: cql
livenessProbe:
exec:
command:
- cqlsh
- --help
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
failureThreshold: 3
volumeMounts:
- mountPath: /var/lib/cassandra
name: cassandra-storage
volumes:
- name: cassandra-storage
persistentVolumeClaim:
claimName: cassandra-pvc
#---
#
#apiVersion: v1
#kind: Service
#metadata:
# name: cassandra-cluster
# namespace: {{ .Values.namespace }}
#spec:
# selector:
# app: cassandra
# ports:
# - port: 9042
# targetPort: 9042
# type: LoadBalancer
#
#---
#
#apiVersion: apps/v1
#kind: Deployment
#metadata:
# name: cassandra-cluster
# namespace: {{ .Values.namespace }}
#spec:
# replicas: 1
# selector:
# matchLabels:
# app: cassandra
# strategy:
# rollingUpdate:
# maxSurge: 25%
# maxUnavailable: 25%
# type: RollingUpdate
# template:
# metadata:
# labels:
# app: cassandra
# spec:
# containers:
# - image: {{ .Values.cassandra.image }}
# imagePullPolicy: Always
#
# name: cassandra
# ports:
# - containerPort: 9042
# name: cql
# livenessProbe:
# exec:
# command:
# - cqlsh
# - --help
# initialDelaySeconds: 10
# timeoutSeconds: 1
# periodSeconds: 10
# failureThreshold: 3
# volumeMounts:
# - mountPath: /var/lib/cassandra
# name: cassandra-storage
# volumes:
# - name: cassandra-storage
# persistentVolumeClaim:
# claimName: cassandra-pvc
{{- end }}
5 changes: 4 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ data:
keycloak.bearer-only: "true"
conf.enableAccountLevelAccessVerification: "false"
fin.keycloak.realm.publicKey: "keycloak-rsa-public-key"
keycloak.use-resource-role-mappings: "true"
keycloak.use-resource-role-mappings: "true"
spring.profiles.active: "cassandra"
spring.autoconfigure.exclude: "org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration"
authentication.enabled: "false"
4 changes: 3 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/customer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.customer.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,7 @@ spec:
containers:
- name: customer-ms
image: {{ .Values.customer.image }}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
name: secret-config
ports:
- containerPort: 2024
{{- end }}
4 changes: 3 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/deposit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.deposit.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,7 @@ spec:
containers:
- name: deposit-ms
image: {{ .Values.deposit.image }}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
name: secret-config
ports:
- containerPort: 2027
{{- end }}
4 changes: 3 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/group.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.group.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,7 @@ spec:
containers:
- name: group-ms
image: {{ .Values.group.image }}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
name: secret-config
ports:
- containerPort: 2032
{{- end }}
11 changes: 10 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/identity.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.identity.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,14 @@ spec:
containers:
- name: identity-ms
image: {{ .Values.identity.image }}
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "{{ .Values.identity.limits.memory }}"
cpu: "{{ .Values.identity.limits.cpu }}"
requests:
memory: "{{ .Values.identity.requests.memory }}"
cpu: "{{ .Values.identity.requests.cpu }}"
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -78,3 +86,4 @@ spec:
name: secret-config
ports:
- containerPort: 2021
{{- end }}
5 changes: 2 additions & 3 deletions Fineract-CN-Helm/fineract-cn/templates/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
# nginx.ingress.kubernetes.io/backend-protocol: HTTP
spec:
rules:
- host: "3813e012-us-east.lb.appdomain.cloud"
- host: "fineract-cn.sandbox.fynarfin.io"
http:
paths:
- path: /provisioner/v1/
Expand Down Expand Up @@ -109,5 +109,4 @@ spec:
service:
name: notifications-service
port:
number: 2033

number: 2033
4 changes: 3 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/notifications.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.notifications.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,7 @@ spec:
containers:
- name: notifications-ms
image: {{ .Values.notifications.image }}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
name: secret-config
ports:
- containerPort: 2033
{{- end }}
4 changes: 3 additions & 1 deletion Fineract-CN-Helm/fineract-cn/templates/office.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.office.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -36,7 +37,7 @@ spec:
containers:
- name: office-ms
image: {{ .Values.office.image }}
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
envFrom:
- configMapRef:
name: external-tools-config
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
name: secret-config
ports:
- containerPort: 2023
{{- end }}
Loading