From 82bacbfaa3e42a71c1b566577c180b7caef0f4a8 Mon Sep 17 00:00:00 2001 From: MohamedAsmeSF4303 <149995993+MohamedAsmeSF4303@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:53:20 +0530 Subject: [PATCH 01/12] rook volume --- helm/boldbi/templates/pvclaim.yaml | 4 +- helm/custom-values/rook-values.yaml | 267 ++++++++++++++++++++++++++++ 2 files changed, 269 insertions(+), 2 deletions(-) create mode 100644 helm/custom-values/rook-values.yaml diff --git a/helm/boldbi/templates/pvclaim.yaml b/helm/boldbi/templates/pvclaim.yaml index fe3cdbed..73a0c0b0 100644 --- a/helm/boldbi/templates/pvclaim.yaml +++ b/helm/boldbi/templates/pvclaim.yaml @@ -69,7 +69,7 @@ data: azurestorageaccountkey: {{ .Values.persistentVolume.aks.azureStorageAccountKey }} --- {{- end }} -{{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} +{{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.clusterProvider "rook")}} apiVersion: v1 kind: PersistentVolume metadata: @@ -151,7 +151,7 @@ metadata: namespace: {{ .Release.Namespace }} {{- end }} spec: - {{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} + {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.persistentVolume.rook.volumeType "block")}} accessModes: - ReadWriteMany {{- else }} diff --git a/helm/custom-values/rook-values.yaml b/helm/custom-values/rook-values.yaml new file mode 100644 index 00000000..7dc65e81 --- /dev/null +++ b/helm/custom-values/rook-values.yaml @@ -0,0 +1,267 @@ +# Default values for boldbi. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. +namespace: bold-services +appBaseUrl: '' +optionalLibs: 'mongodb,mysql,influxdb,snowflake,oracle,google,clickhouse' +clusterProvider: 'rook' + +persistentVolume: + # persistent volumes were global resources. + # so if you already have Bold BI installed in your cluster, then the previous persistent volume name will conflict with current installation. + # Change this name to avoid conflicts with previous Bold BI persistent volumes. + name: bold-fileserver + capacity: 3Gi + rook: + volumeType: "" + blockVolumeStorageClass: "" + +# image: +# repo: us-docker.pkg.dev/boldbi-294612/boldbi +# # Overrides the image tag whose default is the chart appVersion. +# tag: 8.3.17 +# pullPolicy: IfNotPresent +# imagePullSecrets: [] + +loadBalancer: + type: nginx + affinityCookie: + enable: true + affinityCookieExpiration: 600 + # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName + # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress + # ingressClassName: nginx + + nginxIngressAnnotations: + # Enter annotations here for adding annotations in nginx ingress + # Example: + # cert-manager.io/cluster-issuer: letsencrypt-prod + # nginx.ingress.kubernetes.io/rewrite-target: / + + kongIngressAnnotations: + # Enter annotations here for adding annotations in Kong ingress + # Example: + # konghq.com/preserve-host: "true" + # konghq.com/protocols: "http,https" + + singleHost: + secretName: bold-tls + # multipleHost: + # hostArray: + # - hosts: + # - kubernetes.docker.internal + # - example.com + # secretName: bold-tls + + # Enable Gzip in nginx-ingress + enableGzip: false + + # ReverseProxy changes in nginx-ingress + ReverseProxy: false + +subApplication: + enabled: false + # Specify the subpath. The default subpath value is 'boldservices' + subPath: + +instanceConfig: + - app: id-web + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: id-api + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: id-ums + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-web + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-api + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-jobs + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-dataservice + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bold-etl + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + +autoscaling: + enabled: true + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + behavior: + stabilizationWindowSeconds: 60 + podsValue: 1 + podsPeriodSeconds: 60 + percentValue: 10 + percentPeriodSeconds: 60 + +## Custom Localization +localization: + customLocalePath: '' + +## Bold BI Secrets +bingMapWidget: + enabled: false + apiKey: '' + +## Custom Size PDFExport +customSizePdfExport: + enable: false + +## BrowserTimezone +browserTimeZone: + enable: false + +## Use Site Identifier +useSiteIdentifier: + enable: true + +## If the query metrics need to be logged in debug files, set this option to true. By default, this option is set to false. +queryMetricsInDebugFiles: + enable: false + +## If the query and query metrics need to be logged in debug files, set this option to true. By default, this option is set to false. +queryMetricsWithQueryInDebugFiles: + enable: false + +##Integrating Azure Application Insights with Bold BI Enterprise Edition enables you to track and visualize your application’s performance, detect issues, and enhance your application’s overall reliability. +azureApplicationInsights: + connectionString: "" + +rootUserDetails: + # Set this to true if you have existing details in your cluster. + existingSecret: false + email: "" + password: "" + +databaseServerDetails: + # Set this to true if you have existing details in your cluster. + existingSecret: false + + # Type of database server can be used for configuring the Bold BI. Eg: mssql, mysql and postgresql + dbType: "" + + # Name of the Database Server + dbHost: "" + + # The system will use the following default port numbers based on the database server type. + # PostgrSQL – 5432 and MySQL -3306 + # Please specify the port number for your database server if it is configured on a different port. + # For MS SQL Server, this parameter is not necessary. + dbPort: "" + + # Username for the database server + # Please refer to this documentation for information on the user's permissions. + # https://help.boldbi.com/embedded-bi/faq/what-are-the-database-permissions-required-to-set-up-bold-bi-embedded/ + dbUser: "" + + # The database user's password + dbPassword: "" + + # If the database name is not specified, the system will create a new database called bold services. + # If you specify a database name, it should already exist on the server. + dbName: "" + + # For PostgreSQL DB Servers, this is an optional parameter. + # The system will use the database name postgresql by default. + # If your database server uses a different default database, please provide it here. + maintenanceDB: "" + + # If your database server requires additional connection string parameters, include them here + # Connection string parameters can be found in the official document. + # My SQL: https://dev.mysql.com/doc/connector-net/en/connector-net-8-0-connection-options.html + # PostgreSQL: https://www.npgsql.org/doc/connection-string-parameters.html + # MS SQL: https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.connectionstring + # Note: A semicolon(;) should be used to separate multiple parameters. + dbAdditionalParameters: "" + + #A database schema defines the structure, organization, and constraints of data within a database, including tables, fields, relationships, and indexes. + #In MSSQL, the default schema is dbo. + #In PostgreSQL, the default schema is public. + #Both schemas contain tables and other database objects by default. + dbSchema: "" + +brandingDetails: + # This is the header logo for the application, and the preferred image size is 40 x 40 pixels. + mainLogo: "" + + # This is the login logo for the application, and the preferred image size is 200 x 40 pixels. + loginLogo: "" + + # This is an email logo, and the preferred image size is 200 x 40 pixels. + emailLogo: "" + + # This is a favicon, and the preferred image size is 40 x 40 pixels. + favicon: "" + + # This is powered by the logo, and the preferred size is 100 x 25 pixels. + footerLogo: "" + + # This is organization name. + siteName: "" + + # This is site identifier, and it will be the part of the application URL. + siteIdentifier: "" + +licenseKeyDetails: + # Set this to true if you have existing details in your cluster. + existingSecret: false + + # The Bold BI licnece key which you have purchesed. + licenseKey: "" + +# Tolerations allow the pods to be scheduled into nodes with matching taints. +# Set this to true if you use tolerations in your cluster. +# If you need more than one toleration, you can add tolerations below. +tolerationEnable: false +tolerations: + - key: "" + operator: "" + value: "" + effect: "" + +# Node affinity ensures that the pods are scheduled into nodes with matching labels. +# Set this to true if you use Node affinity in your cluster. +nodeAffinityEnable: false +nodeAffinity: + key: "" + operator: "" + value: "" + +# Pod affinity ensures that the pods are scheduled into nodes with matching pods. +# Set this to true if you use pod Affinity in your cluster. +podAffinityEnable: false + +# Pod anti-affinity ensures that the pods are not scheduled into nodes with matching pods. +# Set this to true if you use pod AntiAffinity in your cluster. +podAntiAffinityEnable: false \ No newline at end of file From de63cdeda17c2eeeb973b21cf6530b7224abc230 Mon Sep 17 00:00:00 2001 From: MohamedAsmeSF4303 <149995993+MohamedAsmeSF4303@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:02:10 +0530 Subject: [PATCH 02/12] add --- helm/boldbi/templates/pvclaim.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/boldbi/templates/pvclaim.yaml b/helm/boldbi/templates/pvclaim.yaml index 73a0c0b0..29de6044 100644 --- a/helm/boldbi/templates/pvclaim.yaml +++ b/helm/boldbi/templates/pvclaim.yaml @@ -174,6 +174,8 @@ spec: storageClassName: bold-storageclass {{- else if eq .Values.clusterProvider "oke" }} storageClassName: "" + {{- else if eq .Values.clusterProvider "rook" }} + storageClassName: {{ .Values.persistentVolume.rook.blockVolumeStorageClass }} {{- end }} {{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} volumeName: {{ .Values.persistentVolume.name }} From dac979bcec60ab572affdd79f7a94795f2b718f0 Mon Sep 17 00:00:00 2001 From: MohamedAsmeSF4303 <149995993+MohamedAsmeSF4303@users.noreply.github.com> Date: Tue, 31 Dec 2024 17:21:00 +0530 Subject: [PATCH 03/12] add --- helm/boldbi/templates/pvclaim.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/boldbi/templates/pvclaim.yaml b/helm/boldbi/templates/pvclaim.yaml index 29de6044..22cca471 100644 --- a/helm/boldbi/templates/pvclaim.yaml +++ b/helm/boldbi/templates/pvclaim.yaml @@ -177,7 +177,7 @@ spec: {{- else if eq .Values.clusterProvider "rook" }} storageClassName: {{ .Values.persistentVolume.rook.blockVolumeStorageClass }} {{- end }} - {{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} + {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.clusterProvider "rook")}} volumeName: {{ .Values.persistentVolume.name }} {{- else if .Values.persistentVolume.oke.blockVolume.blockVolumeName }} volumeName: {{ .Values.persistentVolume.oke.blockVolume.blockVolumeName }} From 456b6f6fe30e294f57185d4fa2a1ce3633a8aa06 Mon Sep 17 00:00:00 2001 From: mohamedasme-sf4303 <153055293+mohamedasme-sf4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:41:26 +0530 Subject: [PATCH 04/12] Update pvclaim.yaml --- helm/boldbi/templates/pvclaim.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/boldbi/templates/pvclaim.yaml b/helm/boldbi/templates/pvclaim.yaml index 22cca471..a6a59500 100644 --- a/helm/boldbi/templates/pvclaim.yaml +++ b/helm/boldbi/templates/pvclaim.yaml @@ -151,7 +151,7 @@ metadata: namespace: {{ .Release.Namespace }} {{- end }} spec: - {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.persistentVolume.rook.volumeType "block")}} + {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.persistentVolume.rook.volumeType "block") (or (eq .Values.persistentVolume.rook.volumeType "fileshare") (eq .Values.persistentVolume.rook.volumeType "")}} accessModes: - ReadWriteMany {{- else }} @@ -193,4 +193,4 @@ spec: selector: matchLabels: alicloud-pvname: bold-fileserver - {{- end }} \ No newline at end of file + {{- end }} From e4b7e423eb83da4c81b31d0eaeead5a6fb50d4f4 Mon Sep 17 00:00:00 2001 From: mohamedasme-sf4303 <153055293+mohamedasme-sf4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:43:42 +0530 Subject: [PATCH 05/12] Update rook-values.yaml --- helm/custom-values/rook-values.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/custom-values/rook-values.yaml b/helm/custom-values/rook-values.yaml index 7dc65e81..166bed42 100644 --- a/helm/custom-values/rook-values.yaml +++ b/helm/custom-values/rook-values.yaml @@ -13,7 +13,12 @@ persistentVolume: name: bold-fileserver capacity: 3Gi rook: + # Specify the type of volume to use for storage: + # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. + # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. volumeType: "" + + # Provide the rook storage class name blockVolumeStorageClass: "" # image: @@ -264,4 +269,4 @@ podAffinityEnable: false # Pod anti-affinity ensures that the pods are not scheduled into nodes with matching pods. # Set this to true if you use pod AntiAffinity in your cluster. -podAntiAffinityEnable: false \ No newline at end of file +podAntiAffinityEnable: false From 0bd2d7dd6d7897f6194451984d6db22a0232fdd7 Mon Sep 17 00:00:00 2001 From: mohamedasme-sf4303 <153055293+mohamedasme-sf4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:04:28 +0530 Subject: [PATCH 06/12] Update pvclaim.yaml --- helm/boldbi/templates/pvclaim.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/boldbi/templates/pvclaim.yaml b/helm/boldbi/templates/pvclaim.yaml index a6a59500..2fdedb27 100644 --- a/helm/boldbi/templates/pvclaim.yaml +++ b/helm/boldbi/templates/pvclaim.yaml @@ -151,7 +151,7 @@ metadata: namespace: {{ .Release.Namespace }} {{- end }} spec: - {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.persistentVolume.rook.volumeType "block") (or (eq .Values.persistentVolume.rook.volumeType "fileshare") (eq .Values.persistentVolume.rook.volumeType "")}} + {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.persistentVolume.rook.volumeType "block") (or (eq .Values.persistentVolume.rook.volumeType "fileshare") (eq .Values.persistentVolume.rook.volumeType "")) }} accessModes: - ReadWriteMany {{- else }} From 00de6f905d1d297ff7ec470d807c6b5823e97736 Mon Sep 17 00:00:00 2001 From: MohamedAsmeSF4303 <149995993+MohamedAsmeSF4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:39:38 +0530 Subject: [PATCH 07/12] Update pvclaim.yaml --- helm/custom-values/common-rook-values.yaml | 246 +++++++++++++++++++++ helm/custom-values/values.yaml | 8 + 2 files changed, 254 insertions(+) create mode 100644 helm/custom-values/common-rook-values.yaml diff --git a/helm/custom-values/common-rook-values.yaml b/helm/custom-values/common-rook-values.yaml new file mode 100644 index 00000000..f2dc9429 --- /dev/null +++ b/helm/custom-values/common-rook-values.yaml @@ -0,0 +1,246 @@ +# Default values for boldbi. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +appBaseUrl: '' +optionalLibs: 'mongodb,mysql,influxdb,snowflake,oracle,google,clickhouse' +clusterProvider: 'oke' + +namespace: + name: bold-services + annotations: {} + labels: {} + +persistentVolume: + # persistent volumes were global resources. + # so if you already have Bold BI installed in your cluster, then the previous persistent volume name will conflict with current installation. + # Change this name to avoid conflicts with previous Bold BI persistent volumes. + name: bold-fileserver + capacity: 5Gi + rook: + # Specify the type of volume to use for storage: + # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. + # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. + volumeType: "" + + # Provide the rook storage class name + blockVolumeStorageClass: "" + + +image: + idRepo: us-docker.pkg.dev/boldbi-294612/boldbi + biRepo: us-docker.pkg.dev/boldbi-294612/boldbi + reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + # Overrides the image tag whose default is the chart appVersion. + idTag: 8.3.17 + biTag: 8.3.17 + reportsTag: 6.2.32 + pullPolicy: IfNotPresent +imagePullSecrets: [] + +versions: + idp: "4.19.1" + bi: "8.3.17" + reports: "6.2.32" + +loadBalancer: + type: nginx + affinityCookie: + enable: true + affinityCookieExpiration: 600 + # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName + # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress + # ingressClassName: nginx + + nginxIngressAnnotations: + # Enter annotations here for adding annotations in nginx ingress + # Example: + # cert-manager.io/cluster-issuer: letsencrypt-prod + # nginx.ingress.kubernetes.io/rewrite-target: / + + kongIngressAnnotations: + # Enter annotations here for adding annotations in Kong ingress + # Example: + # konghq.com/preserve-host: "true" + # konghq.com/protocols: "http,https" + + singleHost: + secretName: bold-tls + # multipleHost: + # hostArray: + # - hosts: + # - kubernetes.docker.internal + # - example.com + # secretName: bold-tls + + # Enable Gzip in nginx-ingress + enableGzip: false + +subApplication: + enabled: false + # Specify the subpath. The default subpath value is 'boldservices' + subPath: '' + +istioConfig: + # To use the existing Gateway specify the existing Gateway name. + # If not specified a new Gateway will applied. The default name is 'bold-gateway' + gatewayName: '' + + # Specify the existing VirtualService name. The default name is 'bold-virtual-service' + virtualServiceName: '' + +instanceConfig: + - app: id-web + product: boldid + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: id-api + product: boldid + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: id-ums + product: boldid + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-web + product: boldbi + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-api + product: boldbi + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-jobs + product: boldbi + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bi-dataservice + product: boldbi + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: bold-etl + product: boldbi + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: reports-web + product: boldreports + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: reports-api + product: boldreports + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: reports-jobs + product: boldreports + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: reports-viewer + product: boldreports + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + - app: reports-reportservice + product: boldreports + replicaCount: 1 + minReplicas: 1 + maxReplicas: 20 + cpuResourceRequests: 250m + memoryResourceRequests: 750Mi + +service: + type: ClusterIP + port: 80 + +autoscaling: + enabled: true + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + behavior: + stabilizationWindowSeconds: 60 + podsValue: 1 + podsPeriodSeconds: 60 + percentValue: 10 + percentPeriodSeconds: 60 + +bingMapWidget: + # Specify the existing bingMap Secret Name. The default is 'bold-secret' + bingMapSecretName: '' + enabled: false + apiKey: '' + +## Custom Size PDFExport +customSizePdfExport: + enable: false + +## BrowserTimezone +browserTimeZone: + enable: false + +## If the query metrics need to be logged in debug files, set this option to true. By default, this option is set to false. +queryMetricsInDebugFiles: + enable: false + +## If the query and query metrics need to be logged in debug files, set this option to true. By default, this option is set to false. +queryMetricsWithQueryInDebugFiles: + enable: false + +# Tolerations allow the pods to be scheduled into nodes with matching taints. +# Set this to true if you use tolerations in your cluster. +# If you need more than one toleration, you can add tolerations below. +tolerationEnable: false +tolerations: + - key: "" + operator: "" + value: "" + effect: "" + +# Node affinity ensures that the pods are scheduled into nodes with matching labels. +# Set this to true if you use Node affinity in your cluster. +nodeAffinityEnable: false +nodeAffinity: + key: "" + operator: "" + value: "" + +# Pod affinity ensures that the pods are scheduled into nodes with matching pods. +# Set this to true if you use pod Affinity in your cluster. +podAffinityEnable: false + +# Pod anti-affinity ensures that the pods are not scheduled into nodes with matching pods. +# Set this to true if you use pod AntiAffinity in your cluster. +podAntiAffinityEnable: false diff --git a/helm/custom-values/values.yaml b/helm/custom-values/values.yaml index 40c376a9..57ab3d18 100644 --- a/helm/custom-values/values.yaml +++ b/helm/custom-values/values.yaml @@ -29,6 +29,14 @@ persistentVolume: serverName: '' # This field represents the file path of the app_data files. The default location is "/bold-services". filePath: '/bold-services' + rook: + # Specify the type of volume to use for storage: + # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. + # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. + volumeType: "" + + # Provide the rook storage class name + blockVolumeStorageClass: "" image: repo: us-docker.pkg.dev/boldbi-294612/boldbi From 41848d89050c5bb02d394aceb3f55ee9f3c7416c Mon Sep 17 00:00:00 2001 From: MohamedAsmeSF4303 <149995993+MohamedAsmeSF4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:41:25 +0530 Subject: [PATCH 08/12] Update pvclaim.yaml --- helm/bold-common/templates/pvclaim.yaml | 4 +++- helm/bold-common/values.yaml | 9 +++++++++ helm/boldbi/values.yaml | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/helm/bold-common/templates/pvclaim.yaml b/helm/bold-common/templates/pvclaim.yaml index 2ff28cf9..83a2aa47 100644 --- a/helm/bold-common/templates/pvclaim.yaml +++ b/helm/bold-common/templates/pvclaim.yaml @@ -151,7 +151,7 @@ metadata: namespace: {{ .Release.Namespace }} {{- end }} spec: - {{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} + {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.persistentVolume.rook.volumeType "block") (or (eq .Values.persistentVolume.rook.volumeType "fileshare") (eq .Values.persistentVolume.rook.volumeType "")) }} accessModes: - ReadWriteMany {{- else }} @@ -174,6 +174,8 @@ spec: storageClassName: bold-storageclass {{- else if eq .Values.clusterProvider "oke" }} storageClassName: "" + {{- else if eq .Values.clusterProvider "rook" }} + storageClassName: {{ .Values.persistentVolume.rook.blockVolumeStorageClass }} {{- end }} {{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} volumeName: {{ .Values.persistentVolume.name }} diff --git a/helm/bold-common/values.yaml b/helm/bold-common/values.yaml index ff1b945b..c1e99440 100644 --- a/helm/bold-common/values.yaml +++ b/helm/bold-common/values.yaml @@ -81,6 +81,15 @@ persistentVolume: # This field represents the file path of the app_data files. The default location is "/bold-services". filePath: '/bold-services' + rook: + # Specify the type of volume to use for storage: + # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. + # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. + volumeType: "" + + # Provide the rook storage class name + blockVolumeStorageClass: "" + onpremise: hostPath: '' diff --git a/helm/boldbi/values.yaml b/helm/boldbi/values.yaml index f615d4ea..cb1d674e 100644 --- a/helm/boldbi/values.yaml +++ b/helm/boldbi/values.yaml @@ -69,6 +69,15 @@ persistentVolume: ack: serverName: '' filePath: '' + + rook: + # Specify the type of volume to use for storage: + # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. + # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. + volumeType: "" + + # Provide the rook storage class name + blockVolumeStorageClass: "" image: From 1681bd78e7de1775c47be7def1053c399dd45416 Mon Sep 17 00:00:00 2001 From: MohamedAsmeSF4303 <149995993+MohamedAsmeSF4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:44:22 +0530 Subject: [PATCH 09/12] Update pvclaim.yaml --- helm/bold-common/templates/pvclaim.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/bold-common/templates/pvclaim.yaml b/helm/bold-common/templates/pvclaim.yaml index 83a2aa47..7a4ebffa 100644 --- a/helm/bold-common/templates/pvclaim.yaml +++ b/helm/bold-common/templates/pvclaim.yaml @@ -69,7 +69,7 @@ data: azurestorageaccountkey: {{ .Values.persistentVolume.aks.azureStorageAccountKey }} --- {{- end }} -{{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} +{{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.clusterProvider "rook")}} apiVersion: v1 kind: PersistentVolume metadata: From f46ec9673036faf43242222fcd5c262949073b78 Mon Sep 17 00:00:00 2001 From: mohamedasme-sf4303 <153055293+mohamedasme-sf4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:48:50 +0530 Subject: [PATCH 10/12] Update pvclaim.yaml --- helm/bold-common/templates/pvclaim.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/bold-common/templates/pvclaim.yaml b/helm/bold-common/templates/pvclaim.yaml index 7a4ebffa..b7969256 100644 --- a/helm/bold-common/templates/pvclaim.yaml +++ b/helm/bold-common/templates/pvclaim.yaml @@ -177,7 +177,7 @@ spec: {{- else if eq .Values.clusterProvider "rook" }} storageClassName: {{ .Values.persistentVolume.rook.blockVolumeStorageClass }} {{- end }} - {{- if not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable }} + {{- if and (not .Values.persistentVolume.oke.blockVolume.blockVolumeEnable) (ne .Values.clusterProvider "rook")}} volumeName: {{ .Values.persistentVolume.name }} {{- else if .Values.persistentVolume.oke.blockVolume.blockVolumeName }} volumeName: {{ .Values.persistentVolume.oke.blockVolume.blockVolumeName }} From 62f1a4697e28f255b596abbf135ccec1521e0eb8 Mon Sep 17 00:00:00 2001 From: mohamedasme-sf4303 <153055293+mohamedasme-sf4303@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:50:38 +0530 Subject: [PATCH 11/12] Update common-rook-values.yaml --- helm/custom-values/common-rook-values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/custom-values/common-rook-values.yaml b/helm/custom-values/common-rook-values.yaml index f2dc9429..a179f05d 100644 --- a/helm/custom-values/common-rook-values.yaml +++ b/helm/custom-values/common-rook-values.yaml @@ -4,7 +4,7 @@ appBaseUrl: '' optionalLibs: 'mongodb,mysql,influxdb,snowflake,oracle,google,clickhouse' -clusterProvider: 'oke' +clusterProvider: 'rook' namespace: name: bold-services From eb2e3897dc38cfccb9695fb434adec29225bceb4 Mon Sep 17 00:00:00 2001 From: mohamedasme-sf4303 <153055293+mohamedasme-sf4303@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:36:39 +0530 Subject: [PATCH 12/12] Update values.yaml --- helm/bold-common/values.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/helm/bold-common/values.yaml b/helm/bold-common/values.yaml index c1e99440..a25c54e2 100644 --- a/helm/bold-common/values.yaml +++ b/helm/bold-common/values.yaml @@ -81,14 +81,14 @@ persistentVolume: # This field represents the file path of the app_data files. The default location is "/bold-services". filePath: '/bold-services' - rook: - # Specify the type of volume to use for storage: - # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. - # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. - volumeType: "" - - # Provide the rook storage class name - blockVolumeStorageClass: "" + rook: + # Specify the type of volume to use for storage: + # "block" - For block storage, which supports RWO (ReadWriteOnce). Suitable for single-pod access. + # "fileshare" - For file share storage, which supports RWM (ReadWriteMany). Suitable for shared access across multiple pods. + volumeType: "" + + # Provide the rook storage class name + blockVolumeStorageClass: "" onpremise: hostPath: ''