From d5c70d969357eb965432c37c85ec680a868e3861 Mon Sep 17 00:00:00 2001 From: Kumar Kanagasabai <92317228+kumarkanagasabai@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:54:03 +0000 Subject: [PATCH] Upgraded the version to 6.3.16 --- deploy/deployment.yaml | 18 +- docs/alibaba-ack.md | 14 +- docs/amazon-eks.md | 14 +- docs/google-gke.md | 14 +- docs/index.md | 2 +- docs/microsoft-aks.md | 14 +- docs/on-premise.md | 14 +- helm/README.md | 2 +- helm/boldreports/Chart.yaml | 4 +- helm/boldreports/values.yaml | 8 +- helm/custom-values/ack-values.yaml | 8 +- helm/custom-values/aks-values.yaml | 8 +- helm/custom-values/eks-alb-values.yaml | 10 +- helm/custom-values/eks-values.yaml | 8 +- helm/custom-values/gke-values.yaml | 8 +- helm/custom-values/values.yaml | 8 +- istio/README.md | 2 +- istio/amazon-eks.md | 16 +- istio/google-gke.md | 16 +- istio/microsoft-aks.md | 16 +- istio/on-premise.md | 16 +- upgrade/6-3_upgrade.md | 114 ++++ upgrade/6-3_upgrade.sh | 142 +++++ upgrade/6-3_upgrade/deployment.yaml | 471 ++++++++++++++++ upgrade/6-3_upgrade/destination_rule.yaml | 125 +++++ upgrade/6-3_upgrade/hpa.yaml | 323 +++++++++++ upgrade/6-3_upgrade/hpa_gke.yaml | 233 ++++++++ upgrade/6-3_upgrade/ingress.yaml | 642 ++++++++++++++++++++++ upgrade/6-3_upgrade/istio_gateway.yaml | 141 +++++ upgrade/6-3_upgrade/log4net_config.yaml | 67 +++ upgrade/6-3_upgrade/service.yaml | 152 +++++ upgrade/upgrade.md | 6 +- upgrade/upgrade.sh | 18 +- 33 files changed, 2532 insertions(+), 122 deletions(-) create mode 100644 upgrade/6-3_upgrade.md create mode 100644 upgrade/6-3_upgrade.sh create mode 100644 upgrade/6-3_upgrade/deployment.yaml create mode 100644 upgrade/6-3_upgrade/destination_rule.yaml create mode 100644 upgrade/6-3_upgrade/hpa.yaml create mode 100644 upgrade/6-3_upgrade/hpa_gke.yaml create mode 100644 upgrade/6-3_upgrade/ingress.yaml create mode 100644 upgrade/6-3_upgrade/istio_gateway.yaml create mode 100644 upgrade/6-3_upgrade/log4net_config.yaml create mode 100644 upgrade/6-3_upgrade/service.yaml diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 10f5a47..fc60023 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: id-web-container - image: us-docker.pkg.dev/boldreports/v6-2-32/bold-identity:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-identity:6.3.16 ports: - containerPort: 80 resources: @@ -73,7 +73,7 @@ spec: name: id-api-volume containers: - name: id-api-container - image: us-docker.pkg.dev/boldreports/v6-2-32/bold-idp-api:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-idp-api:6.3.16 ports: - containerPort: 80 resources: @@ -126,7 +126,7 @@ spec: name: id-ums-volume containers: - name: id-ums-container - image: us-docker.pkg.dev/boldreports/v6-2-32/bold-ums:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-ums:6.3.16 ports: - containerPort: 80 resources: @@ -179,7 +179,7 @@ spec: name: reports-web-volume containers: - name: reports-web-container - image: us-docker.pkg.dev/boldreports/v6-2-32/boldreports-server:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server:6.3.16 ports: - containerPort: 80 resources: @@ -231,7 +231,7 @@ spec: name: reports-api-volume containers: - name: reports-api-container - image: us-docker.pkg.dev/boldreports/v6-2-32/boldreports-server-api:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server-api:6.3.16 ports: - containerPort: 80 resources: @@ -283,7 +283,7 @@ spec: name: reports-jobs-volume containers: - name: reports-jobs-container - image: us-docker.pkg.dev/boldreports/v6-2-32/boldreports-server-jobs:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server-jobs:6.3.16 ports: - containerPort: 80 resources: @@ -335,7 +335,7 @@ spec: name: reports-reportservice-volume containers: - name: reports-reportservice-container - image: us-docker.pkg.dev/boldreports/v6-2-32/boldreports-designer:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-designer:6.3.16 ports: - containerPort: 80 resources: @@ -387,7 +387,7 @@ spec: name: reports-viewer-volume containers: - name: reports-viewer-container - image: us-docker.pkg.dev/boldreports/v6-2-32/boldreports-viewer:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-viewer:6.3.16 ports: - containerPort: 80 resources: @@ -439,7 +439,7 @@ spec: name: bold-etl-volume containers: - name: bold-etl-container - image: us-docker.pkg.dev/boldreports/v6-2-32/bold-etl:6.2.32 + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-etl:6.3.16 ports: - containerPort: 80 env: diff --git a/docs/alibaba-ack.md b/docs/alibaba-ack.md index 5fdfd0d..e2f63cc 100644 --- a/docs/alibaba-ack.md +++ b/docs/alibaba-ack.md @@ -23,13 +23,13 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in ACK: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_ack.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_ack.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/ingress.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_ack.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_ack.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/ingress.yaml) 2. Navigate to the folder where the deployment files were downloaded in Step 1. 3. Follow the documentation provided at [this link](https://www.alibabacloud.com/help/en/nas/latest/create-a-nas-file-system) to create a `file system` in Alibaba Cloud. 4. Once the file system is created, locate and click on the cube icon. This will allow you to view the mount target hostname. Take note of the mount target hostname, as you will need it for mounting the file system with our application. diff --git a/docs/amazon-eks.md b/docs/amazon-eks.md index dd97971..586117f 100644 --- a/docs/amazon-eks.md +++ b/docs/amazon-eks.md @@ -4,13 +4,13 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in Amazon EKS: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_eks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_eks.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/ingress.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_eks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_eks.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/ingress.yaml) 2. Create an Amazon EKS cluster and [node group](https://docs.aws.amazon.com/eks/latest/userguide/eks-compute.html) to deploy Bold Reports. diff --git a/docs/google-gke.md b/docs/google-gke.md index 85ecc38..9106b7a 100644 --- a/docs/google-gke.md +++ b/docs/google-gke.md @@ -4,13 +4,13 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in GKE: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_gke.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa_gke.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/ingress.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_gke.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa_gke.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/ingress.yaml) 2. Create a Kubernetes cluster in Google Cloud Platform (GCP) to deploy Bold Reports. diff --git a/docs/index.md b/docs/index.md index 904fc00..625d9f9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,4 +16,4 @@ # Upgrade Bold Reports -If you are upgrading Bold Reports to 6.2.32, please follow the steps in this [link](/upgrade/upgrade.md). \ No newline at end of file +If you are upgrading Bold Reports to 6.3.16, please follow the steps in this [link](/upgrade/upgrade.md). \ No newline at end of file diff --git a/docs/microsoft-aks.md b/docs/microsoft-aks.md index 671f6e7..5d81d09 100644 --- a/docs/microsoft-aks.md +++ b/docs/microsoft-aks.md @@ -4,13 +4,13 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in AKS: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_aks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_aks.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/ingress.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_aks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_aks.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/ingress.yaml) 2. Create a Kubernetes cluster in Microsoft Azure Kubernetes Service (AKS) to deploy Bold Reports. diff --git a/docs/on-premise.md b/docs/on-premise.md index fd5d941..f512283 100644 --- a/docs/on-premise.md +++ b/docs/on-premise.md @@ -4,13 +4,13 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in On-Premise. - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_onpremise.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_onpremise.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/ingress.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_onpremise.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_onpremise.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [ingress.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/ingress.yaml) 2. Create a folder in your machine to store the shared folders for applications usage. diff --git a/helm/README.md b/helm/README.md index e44400c..cc64d20 100644 --- a/helm/README.md +++ b/helm/README.md @@ -27,7 +27,7 @@ helm repo update helm search repo boldreports NAME CHART VERSION APP VERSION DESCRIPTION -boldreports/boldreports 6.2.32 6.2.32 Make bolder business decisions with complete reporting solutions... +boldreports/boldreports 6.3.16 6.3.16 Make bolder business decisions with complete reporting solutions... ``` _See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._ diff --git a/helm/boldreports/Chart.yaml b/helm/boldreports/Chart.yaml index 7fe1c77..57921c1 100644 --- a/helm/boldreports/Chart.yaml +++ b/helm/boldreports/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: boldreports type: application -appVersion: 6.2.32 -version: 6.2.32 +appVersion: 6.3.16 +version: 6.3.16 description: Make bolder business decisions with complete reporting solutions, unleash the power of your data with paginated, printable reports, and make intelligent decisions. home: https://www.boldreports.com/ icon: https://on-premise-demo.boldreports.com/reporting/images/application/boldreports/main_logo.svg \ No newline at end of file diff --git a/helm/boldreports/values.yaml b/helm/boldreports/values.yaml index 5491238..3fb5f8a 100644 --- a/helm/boldreports/values.yaml +++ b/helm/boldreports/values.yaml @@ -36,11 +36,11 @@ persistentVolume: hostPath: '' image: - idRepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idRepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/helm/custom-values/ack-values.yaml b/helm/custom-values/ack-values.yaml index 70865e4..cb7cf70 100644 --- a/helm/custom-values/ack-values.yaml +++ b/helm/custom-values/ack-values.yaml @@ -17,11 +17,11 @@ persistentVolume: filePath: '/bold-services' image: - idRepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idRepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/helm/custom-values/aks-values.yaml b/helm/custom-values/aks-values.yaml index 88f62fc..5acd11e 100644 --- a/helm/custom-values/aks-values.yaml +++ b/helm/custom-values/aks-values.yaml @@ -29,11 +29,11 @@ persistentVolume: hostName: '' image: - idRepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idRepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/helm/custom-values/eks-alb-values.yaml b/helm/custom-values/eks-alb-values.yaml index b5363cf..b15f2c8 100644 --- a/helm/custom-values/eks-alb-values.yaml +++ b/helm/custom-values/eks-alb-values.yaml @@ -16,17 +16,17 @@ persistentVolume: efsFileSystemId: '' image: - idRepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idRepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] versions: idp: "4.23.1" - reports: "6.2.32" + reports: "6.3.16" loadBalancer: type: alb diff --git a/helm/custom-values/eks-values.yaml b/helm/custom-values/eks-values.yaml index 2d8ec9b..7577c90 100644 --- a/helm/custom-values/eks-values.yaml +++ b/helm/custom-values/eks-values.yaml @@ -16,11 +16,11 @@ persistentVolume: efsFileSystemId: '' image: - idRepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idRepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/helm/custom-values/gke-values.yaml b/helm/custom-values/gke-values.yaml index e180828..15e1edc 100644 --- a/helm/custom-values/gke-values.yaml +++ b/helm/custom-values/gke-values.yaml @@ -17,11 +17,11 @@ persistentVolume: fileShareIp: '' image: - idrepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idrepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/helm/custom-values/values.yaml b/helm/custom-values/values.yaml index 1bd76a9..1b2f52c 100644 --- a/helm/custom-values/values.yaml +++ b/helm/custom-values/values.yaml @@ -27,11 +27,11 @@ persistentVolume: hostPath: '' image: - idRepo: us-docker.pkg.dev/boldreports/v6-2-32 - reportsRepo: us-docker.pkg.dev/boldreports/v6-2-32 + idRepo: us-docker.pkg.dev/boldreports/v6-3-16 + reportsRepo: us-docker.pkg.dev/boldreports/v6-3-16 # Overrides the image tag whose default is the chart appVersion. - idTag: 6.2.32 - reportsTag: 6.2.32 + idTag: 6.3.16 + reportsTag: 6.3.16 pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/istio/README.md b/istio/README.md index 47a8ae8..b6ad705 100644 --- a/istio/README.md +++ b/istio/README.md @@ -15,4 +15,4 @@ Bold Reports can be deployed manually on Kubernetes cluster. You can create Kube # Upgrade Bold Reports -If you are upgrading Bold Reports to 6.2.32, please follow the steps in this [link](/upgrade/upgrade.md). \ No newline at end of file +If you are upgrading Bold Reports to 6.3.16, please follow the steps in this [link](/upgrade/upgrade.md). \ No newline at end of file diff --git a/istio/amazon-eks.md b/istio/amazon-eks.md index 232ddaa..42f0a20 100644 --- a/istio/amazon-eks.md +++ b/istio/amazon-eks.md @@ -4,14 +4,14 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in Amazon EKS: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_eks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_eks.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/istio_gateway.yaml) - * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/destination_rule.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_eks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_eks.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/istio_gateway.yaml) + * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/destination_rule.yaml) 2. Create an Amazon EKS cluster and [node group](https://docs.aws.amazon.com/eks/latest/userguide/eks-compute.html) to deploy Bold Reports. diff --git a/istio/google-gke.md b/istio/google-gke.md index c341553..c84853a 100644 --- a/istio/google-gke.md +++ b/istio/google-gke.md @@ -4,14 +4,14 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in GKE: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_gke.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa_gke.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/istio_gateway.yaml) - * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/destination_rule.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_gke.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa_gke.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa_gke.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/istio_gateway.yaml) + * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/destination_rule.yaml) 2. Create a Kubernetes cluster in Google Cloud Platform (GCP) to deploy Bold Reports. diff --git a/istio/microsoft-aks.md b/istio/microsoft-aks.md index 3643a66..4b2e81e 100644 --- a/istio/microsoft-aks.md +++ b/istio/microsoft-aks.md @@ -4,14 +4,14 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in AKS: - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_aks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_aks.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/istio_gateway.yaml) - * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/destination_rule.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_aks.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_aks.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/istio_gateway.yaml) + * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/destination_rule.yaml) 2. Create a Kubernetes cluster in Microsoft Azure Kubernetes Service (AKS) to deploy Bold Reports. diff --git a/istio/on-premise.md b/istio/on-premise.md index 55b1f65..3ed3381 100644 --- a/istio/on-premise.md +++ b/istio/on-premise.md @@ -4,14 +4,14 @@ For fresh installation, continue with the following steps to deploy Bold Reports 1. Download the following files for Bold Reports deployment in On-Premise. - * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/namespace.yaml) - * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/log4net_config.yaml) - * [pvclaim_onpremise.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/pvclaim_onpremise.yaml) - * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/deployment.yaml) - * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/hpa.yaml) - * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/service.yaml) - * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/istio_gateway.yaml) - * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/deploy/destination_rule.yaml) + * [namespace.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/namespace.yaml) + * [log4net_config.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/log4net_config.yaml) + * [pvclaim_onpremise.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/pvclaim_onpremise.yaml) + * [deployment.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/deployment.yaml) + * [hpa.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/hpa.yaml) + * [service.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/service.yaml) + * [istio_gateway.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/istio_gateway.yaml) + * [destination_rule.yaml](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/deploy/destination_rule.yaml) 2. Create a folder in your machine to store the shared folders for applications usage. diff --git a/upgrade/6-3_upgrade.md b/upgrade/6-3_upgrade.md new file mode 100644 index 0000000..b0a8238 --- /dev/null +++ b/upgrade/6-3_upgrade.md @@ -0,0 +1,114 @@ +# Upgrading Bold Reports to latest version + +This section explains how to upgrade Bold Reports to latest version in your Kubernetes cluster. You can refer to the features and enhancements from this [Release Notes](https://www.boldreports.com/release-history/embedded-reporting). + + +## Backup the existing data +Before upgrading the Bold Reports to latest version, make sure to take the backup of the following items. + +* Files and folders from the shared location, which you have mounted to the deployments by persistent volume claims (pvclaim_*.yaml). + +* Database backup - Take a backup of Database, to restore incase if the upgrade was not successful or if applications are not working properly after the upgrade. + + +## Proceeding with upgrade +Bold Reports updates the database schema of your current version to the latest version. The upgrade process will retain all the resources and settings from the previous deployment. + +You can download the upgrade script from this [link](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade.sh) or use the below command. + +```sh +curl -o upgrade.sh https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade.sh +``` + +Run the following command to execute the shell script to upgrade Bold Reports. + +```sh +./upgrade.sh --version="" --namespace="" --application_base_url="" --optional_libs="" --tls_secret_name="" --environment="" --load_balancer="" --ingress_name="" --pvc_name="" +``` + + +> **INFO:** +> 1. You can ignore `--ingress_name`,`--tls_secret_name` and `--pvc_name` arguments from the above upgrade command if you are using custom names for ingress,tls secret and pvc. +> 2. You can also ignore `--optional_libs` argument if not needed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ version + + Image tag of the current version, which you are going to upgrade. +
+ namespace (optional) + + namespace in which your existing Bold Reports application was running.
+ Default value: default +
+ application_base_url + + Application base URL of your Bold Reports Deployment. +
+ comma_separated_library_names (optional) + + Comma seperated optional libraries.
+ Default value is null +
+ tls_secret_name (optional) + + Secret name created for tls.
+ Default value: boldreports-tls +
+ environment + + Cloud Provider you chose for host the application in the kubernetes +
+ load_balancer + + Type of load balancer which is using in existing Bold Reports application was running. +
+ ingress_name (optional) + + If you are using custom name for ingress. Give the name of the ingress which is using in existing ingress file.
+ Default value: boldreports-ingress +
+ pvc_name (optional) + + If you are using custom name for persistent volume claim. Give the name of the PVC which is using existing pvc file.
+ Default value: bold-services-fileserver-claim +
+ +If you are upgrading the bold reports application from v5.3 or below, then you need to enable puppeteer. Please refer [this](/docs/enable-puppeteer-when-upgrading-lower-version-to-v5.4.20.md) documentation for enabling puppeteer. \ No newline at end of file diff --git a/upgrade/6-3_upgrade.sh b/upgrade/6-3_upgrade.sh new file mode 100644 index 0000000..72f5f9f --- /dev/null +++ b/upgrade/6-3_upgrade.sh @@ -0,0 +1,142 @@ +#!/usr/bin/env bash +# Copyright (c) Syncfusion Inc. All rights reserved. +# + +while [ $# -gt 0 ]; do + case "$1" in + --version=*) + version="${1#*=}" + ;; + --namespace=*) + namespace="${1#*=}" + ;; + --application_base_url=*) + application_base_url="${1#*=}" + ;; + --tls_secret_name=*) + tls_secret_name="${1#*=}" + ;; + --optional_libs=*) + optional_libs="${1#*=}" + ;; + --environment=*) + environment="${1#*=}" + ;; + --load_balancer=*) + load_balancer="${1#*=}" + ;; + --ingress_name=*) + ingress_name="${1#*=}" + ;; + --pvc_name=*) + pvc_name="${1#*=}" + ;; + *) + esac + shift +done + +[ -n "$version" ] || read -p 'Enter the version to upgrade: ' version + +if [ -z "$version" ] +then + echo "Version is empty." +else + if [ -z "$namespace" ] + then + namespace="default" + fi + + if [ -z "$ingress_name" ] + then + ingress_name="boldreports-ingress" + fi + + if [ -z "$pvc_name" ] + then + pvc_name="bold-services-fileserver-claim" + fi + + if [ -z "$tls_secret_name" ] + then + tls_secret_name="boldreports-tls" + fi + + if [[ "$version" == *"6.3.16"* ]] + then + [ -n "$application_base_url" ] || read -p 'Enter the application_base_url: ' application_base_url + + dns_name=$(echo $application_base_url | sed -e 's|^[^/]*//||' -e 's|/.*$||') + + if [ ! -d "boldreports_6-3" ]; then mkdir boldreports_6-3; fi + + # Downloading deployment files.." + if [ ! -f "boldreports_6-3/hpa.yaml" ]; then curl -o boldreports_6-3/hpa.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/hpa.yaml; fi + if [ ! -f "boldreports_6-3/hpa_gke.yaml" ]; then curl -o boldreports_6-3/hpa_gke.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/hpa_gke.yaml; fi + if [ ! -f "boldreports_6-3/service.yaml" ]; then curl -o boldreports_6-3/service.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/service.yaml; fi + if [ ! -f "boldreports_6-3/deployment.yaml" ]; then curl -o boldreports_6-3/deployment.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/mast/upgrade/6-3_upgrade/deployment.yaml; fi + if [ ! -f "boldreports_6-3/ingress.yaml" ]; then curl -o boldreports_6-3/ingress.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/ingress.yaml; fi + if [ ! -f "boldreports_6-3/destination_rule.yaml" ]; then curl -o boldreports_6-3/destination_rule.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/destination_rule.yaml; fi + if [ ! -f "boldreports_6-3/istio_gateway.yaml" ]; then curl -o boldreports_6-3/istio_gateway.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/istio_gateway.yaml; fi + if [ ! -f "boldreports_6-3/log4net_config.yaml" ]; then curl -o boldreports_6-3/log4net_config.yaml https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/master/upgrade/6-3_upgrade/log4net_config.yaml; fi + + # deployment file changes changes + sed -i "s//$namespace/g" boldreports_6-3/hpa.yaml + sed -i "s//$namespace/g" boldreports_6-3/hpa_gke.yaml + sed -i "s//$namespace/g" boldreports_6-3/service.yaml + sed -i "s//$namespace/g" boldreports_6-3/deployment.yaml + sed -i "s//$namespace/g" boldreports_6-3/istio_gateway.yaml + sed -i "s//$namespace/g" boldreports_6-3/destination_rule.yaml + sed -i "s//$namespace/g" boldreports_6-3/ingress.yaml + sed -i "s//$namespace/g" boldreports_6-3/log4net_config.yaml + sed -i "s//$ingress_name/g" boldreports_6-3/ingress.yaml + sed -i "s//$version/g" boldreports_6-3/deployment.yaml + sed -i "s//$pvc_name/g" boldreports_6-3/deployment.yaml + sed -i "s,,$application_base_url,g" boldreports_6-3/deployment.yaml + sed -i "s//$optional_libs/g" boldreports_6-3/deployment.yaml + + # applying new changes to cluster + kubectl apply -f boldreports_6-3/service.yaml + kubectl apply -f boldreports_6-3/deployment.yaml + kubectl apply -f boldreports_6-3/log4net_config.yaml + + if [[ "$environment" == *"GKE"* ]] + then + kubectl apply -f boldreports_6-3/hpa_gke.yaml + else + kubectl apply -f boldreports_6-3/hpa.yaml + fi + + # Extract the protocol and domain from the URL + protocol=$(echo "$application_base_url" | awk -F: '{print $1}') + + # Function to check if a string is an IP address + is_ip() { + [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] + } + + if [[ "$load_balancer" == *"ingress"* ]] + then + # Check if application_base_url is an IP address + if is_ip "$dns_name"; then + kubectl apply -f boldreports_6-3/ingress.yaml + else + # Update the Ingress file based on the protocol + if [ "$protocol" == "http" ]; then + sed -i -e "s|^ *- #host: | - host: $dns_name|" "boldreports_6-3/ingress.yaml" + kubectl apply -f boldreports_6-3/ingress.yaml + elif [ "$protocol" == "https" ]; then + sed -i -e "s|^ *# tls| tls|" "boldreports_6-3/ingress.yaml" + sed -i -e "s|^ *# - hosts:| - hosts:|" "boldreports_6-3/ingress.yaml" + sed -i -e "s|^ *# - | - $dns_name|" "boldreports_6-3/ingress.yaml" + sed -i -e "s|^ *# secretName: | secretName: $tls_secret_name|" "boldreports_6-3/ingress.yaml" + sed -i -e "s|^ *- #host: | - host: $dns_name|" "boldreports_6-3/ingress.yaml" + kubectl apply -f boldreports_6-3/ingress.yaml + fi + fi + else + kubectl apply -f boldreports_6-3/istio_gateway.yaml + kubectl apply -f boldreports_6-3/destination_rule.yaml + fi + fi +fi \ No newline at end of file diff --git a/upgrade/6-3_upgrade/deployment.yaml b/upgrade/6-3_upgrade/deployment.yaml new file mode 100644 index 0000000..0ef9749 --- /dev/null +++ b/upgrade/6-3_upgrade/deployment.yaml @@ -0,0 +1,471 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: id-web-deployment + namespace: +spec: + selector: + matchLabels: + app: id-web + replicas: 1 + template: + metadata: + labels: + app: id-web + spec: + containers: + - name: id-web-container + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-identity: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + env: + - name: APP_BASE_URL + value: + - name: INSTALL_OPTIONAL_LIBS + value: + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 200 + periodSeconds: 10 + timeoutSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: id-web-volume + - mountPath: /application/idp/web/logs + name: log4net-config-volume + volumes: + - name: id-web-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: id-api-deployment + namespace: +spec: + selector: + matchLabels: + app: id-api + replicas: 1 + template: + metadata: + labels: + app: id-api + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: id-api-volume + containers: + - name: id-api-container + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-idp-api: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 200 + periodSeconds: 10 + timeoutSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: id-api-volume + - mountPath: /application/idp/api/logs + name: log4net-config-volume + volumes: + - name: id-api-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: id-ums-deployment + namespace: +spec: + selector: + matchLabels: + app: id-ums + replicas: 1 + template: + metadata: + labels: + app: id-ums + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: id-ums-volume + containers: + - name: id-ums-container + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-ums: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 200 + periodSeconds: 10 + timeoutSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: id-ums-volume + - mountPath: /application/idp/ums/logs + name: log4net-config-volume + volumes: + - name: id-ums-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: reports-web-deployment + namespace: +spec: + selector: + matchLabels: + app: reports-web + replicas: 1 + template: + metadata: + labels: + app: reports-web + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: reports-web-volume + containers: + - name: reports-web-container + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 20 + periodSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: reports-web-volume + - mountPath: /application/reporting/web/logs + name: log4net-config-volume + volumes: + - name: reports-web-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: reports-api-deployment + namespace: +spec: + selector: + matchLabels: + app: reports-api + replicas: 1 + template: + metadata: + labels: + app: reports-api + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: reports-api-volume + containers: + - name: reports-api-container + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server-api: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 20 + periodSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: reports-api-volume + - mountPath: /application/reporting/api/logs + name: log4net-config-volume + volumes: + - name: reports-api-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: reports-jobs-deployment + namespace: +spec: + selector: + matchLabels: + app: reports-jobs + replicas: 1 + template: + metadata: + labels: + app: reports-jobs + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: reports-jobs-volume + containers: + - name: reports-jobs-container + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server-jobs: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 20 + periodSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: reports-jobs-volume + - mountPath: /application/reporting/jobs/logs + name: log4net-config-volume + volumes: + - name: reports-jobs-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: reports-reportservice-deployment + namespace: +spec: + selector: + matchLabels: + app: reports-reportservice + replicas: 1 + template: + metadata: + labels: + app: reports-reportservice + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: reports-reportservice-volume + containers: + - name: reports-reportservice-container + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-designer: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 40 + periodSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: reports-reportservice-volume + - mountPath: /application/reporting/reportservice/logs + name: log4net-config-volume + volumes: + - name: reports-reportservice-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: reports-viewer-deployment + namespace: +spec: + selector: + matchLabels: + app: reports-viewer + replicas: 1 + template: + metadata: + labels: + app: reports-viewer + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: reports-viewer-volume + containers: + - name: reports-viewer-container + image: us-docker.pkg.dev/boldreports/v6-3-16/boldreports-viewer: + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 40 + periodSeconds: 10 + volumeMounts: + - mountPath: /application/app_data + name: reports-viewer-volume + - mountPath: /application/reporting/viewer/logs + name: log4net-config-volume + volumes: + - name: reports-viewer-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: bold-etl-deployment + namespace: +spec: + selector: + matchLabels: + app: bold-etl + replicas: 1 + template: + metadata: + labels: + app: bold-etl + spec: + initContainers: + - name: id-web-initialization + image: busybox:1.28 + command: ["/bin/sh","-c"] + args: ["if [ ! -f /application/app_data/configuration/config.xml ]; then echo waiting for id-web; sleep 5; else echo config.xml file exist; fi"] + volumeMounts: + - mountPath: /application/app_data + name: bold-etl-volume + containers: + - name: bold-etl-container + image: us-docker.pkg.dev/boldreports/v6-3-16/bold-etl: + ports: + - containerPort: 80 + env: + - name: BOLD_SERVICES_HOSTING_ENVIRONMENT + value: k8s + resources: + requests: + cpu: 250m + memory: 750Mi + readinessProbe: + httpGet: + path: /health-check + port: 80 + initialDelaySeconds: 20 + periodSeconds: 15 + timeoutSeconds: 5 + volumeMounts: + - mountPath: /application/app_data + name: bold-etl-volume + - mountPath: /application/etl/etlservice/logs/k8s + name: log4net-config-volume + volumes: + - name: bold-etl-volume + persistentVolumeClaim: + claimName: + readOnly: false + - name: log4net-config-volume + configMap: + name: log4net-config \ No newline at end of file diff --git a/upgrade/6-3_upgrade/destination_rule.yaml b/upgrade/6-3_upgrade/destination_rule.yaml new file mode 100644 index 0000000..4284692 --- /dev/null +++ b/upgrade/6-3_upgrade/destination_rule.yaml @@ -0,0 +1,125 @@ +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: id-web-rule +spec: + host: id-web-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.id.web.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: id-api-rule +spec: + host: id-api-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.id.api.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: id-ums-rule +spec: + host: id-ums-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.id.ums.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: reports-web-rule +spec: + host: reports-web-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.reports.web.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: reports-api-rule +spec: + host: reports-api-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.reports.api.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: reports-jobs-rule +spec: + host: reports-jobs-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.reports.jobs.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: reports-reportservice-rule +spec: + host: reports-reportservice-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.reports.reportservice.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: reports-viewer-rule +spec: + host: reports-viewer-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: boldreports.k8s.reports.viewer.pod.id + ttl: 600s +--- +apiVersion: networking.istio.io/v1alpha3 +kind: DestinationRule +metadata: + namespace: + name: bold-etl-rule +spec: + host: bold-etl-service.bold-services.svc.cluster.local + trafficPolicy: + loadBalancer: + consistentHash: + httpCookie: + name: bold.k8s.bold.etl.pod.id + ttl: 600s \ No newline at end of file diff --git a/upgrade/6-3_upgrade/hpa.yaml b/upgrade/6-3_upgrade/hpa.yaml new file mode 100644 index 0000000..41408be --- /dev/null +++ b/upgrade/6-3_upgrade/hpa.yaml @@ -0,0 +1,323 @@ +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: id-web-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: id-web-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: id-api-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: id-api-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: id-ums-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: id-ums-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-web-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-web-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-api-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-api-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-jobs-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-jobs-deployment + minReplicas: 1 + maxReplicas: 1 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-reportservice-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-reportservice-deployment + minReplicas: 1 + maxReplicas: 1 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-viewer-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-viewer-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: bold-etl-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: bold-etl-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 + behavior: + scaleDown: + stabilizationWindowSeconds: 60 + policies: + - type: Pods + value: 1 + periodSeconds: 60 + - type: Percent + value: 10 + periodSeconds: 60 \ No newline at end of file diff --git a/upgrade/6-3_upgrade/hpa_gke.yaml b/upgrade/6-3_upgrade/hpa_gke.yaml new file mode 100644 index 0000000..9854760 --- /dev/null +++ b/upgrade/6-3_upgrade/hpa_gke.yaml @@ -0,0 +1,233 @@ +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: id-web-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: id-web-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: id-api-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: id-api-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: id-ums-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: id-ums-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-web-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-web-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-api-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-api-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-jobs-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-jobs-deployment + minReplicas: 1 + maxReplicas: 1 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-reportservice-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-reportservice-deployment + minReplicas: 1 + maxReplicas: 1 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: reports-viewer-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: reports-viewer-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: bold-etl-hpa + namespace: +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: bold-etl-deployment + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 80 \ No newline at end of file diff --git a/upgrade/6-3_upgrade/ingress.yaml b/upgrade/6-3_upgrade/ingress.yaml new file mode 100644 index 0000000..9e7c76a --- /dev/null +++ b/upgrade/6-3_upgrade/ingress.yaml @@ -0,0 +1,642 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: + namespace: + annotations: + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/use-regex: "true" + nginx.ingress.kubernetes.io/proxy-buffer-size: "128k" + nginx.ingress.kubernetes.io/proxy-buffers: "4 256k" + nginx.ingress.kubernetes.io/proxy-busy-buffers-size: "256k" + nginx.ingress.kubernetes.io/large-client-header-buffers: "4 16k" + nginx.ingress.kubernetes.io/fastcgi-buffers: "16 16k" + nginx.ingress.kubernetes.io/fastcgi-buffer-size: "32k" + nginx.ingress.kubernetes.io/proxy-connect-timeout: "300" + nginx.ingress.kubernetes.io/proxy-read-timeout: "300" + nginx.ingress.kubernetes.io/proxy-send-timeout: "300" + nginx.ingress.kubernetes.io/affinity: cookie + nginx.ingress.kubernetes.io/session-cookie-hash: sha1 + nginx.ingress.kubernetes.io/session-cookie-name: "boldreports.k8s.pod.id" + nginx.ingress.kubernetes.io/session-cookie-max-age: "432000" + nginx.ingress.kubernetes.io/session-cookie-expires: "200" + nginx.ingress.kubernetes.io/proxy-body-size: 200m + nginx.ingress.kubernetes.io/server-snippet: | + client_max_body_size 200m; + set $boldreports_namespace ""; + + location ~* "^/reporting/api(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/reportsapi6551/reporting/api(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-reports-api-service-6551"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/reportsapi6551/reporting/api(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/reporting/viewer(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/reportsviewer6554/reporting/viewer(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-reports-viewer-service-6554"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/reportsviewer6554/reporting/viewer(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/reporting/jobs(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/reportsjobs6552/reporting/jobs(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-reports-jobs-service-6552"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/reportsjobs6552/reporting/jobs(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/reporting/reportservice(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/reportsdesigner6553/reportservice(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-reports-reportservice-service-6553"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/reportsdesigner6553/reportservice(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/reporting(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/reportsweb6550/reporting(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-reports-web-service-6550"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/reportsweb6550/reporting(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/api(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/idapi6001/api(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-id-api-service-6001"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/idapi6001/api(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/ums(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/idums6002/ums(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-id-ums-service-6002"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/idums6002/ums(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } + + location ~* "^/etlservice(/|$)(.*)" { + set $namespace $boldreports_namespace; + set $ingress_name "boldreports-ingress"; + set $service_name ""; + set $service_port ""; + set $location_path "/etlservice(/|${literal_dollar})(.*)"; + rewrite_by_lua_block { + lua_ingress.rewrite({ + force_ssl_redirect = false, + ssl_redirect = true, + force_no_ssl_redirect = false, + use_port_in_redirects = false, + }) + balancer.rewrite() + plugins.run() + } + header_filter_by_lua_block { + lua_ingress.header() + plugins.run() + } + body_filter_by_lua_block { + } + log_by_lua_block { + balancer.log() + monitor.call() + plugins.run() + } + port_in_redirect off; + set $balancer_ewma_score -1; + set $proxy_upstream_name "${boldreports_namespace}-bold-etl-service-6009"; + set $proxy_host $proxy_upstream_name; + set $pass_access_scheme $scheme; + set $pass_server_port $server_port; + set $best_http_host $http_host; + set $pass_port $pass_server_port; + set $proxy_alternative_upstream_name ""; + proxy_set_header Host $best_http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Request-ID $req_id; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $best_http_host; + proxy_set_header X-Forwarded-Port $pass_port; + proxy_set_header X-Forwarded-Proto $pass_access_scheme; + proxy_set_header X-Scheme $pass_access_scheme; + proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for; + proxy_set_header Proxy ""; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + proxy_buffering off; + proxy_buffer_size 4k; + proxy_buffers 4 4k; + proxy_max_temp_file_size 1024m; + proxy_request_buffering on; + proxy_http_version 1.1; + proxy_cookie_domain off; + proxy_cookie_path off; + proxy_next_upstream error timeout; + proxy_next_upstream_timeout 0; + proxy_next_upstream_tries 3; + rewrite "(?i)/etlservice(/|$)(.*)" /$2 break; + proxy_pass http://upstream_balancer; + proxy_redirect off; + } +spec: + # tls: + # - hosts: + # - + # secretName: + rules: + - #host: + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: id-web-service + port: + number: 6000 + + - path: /idapi6001(/|$)(.*) + pathType: Prefix + backend: + service: + name: id-api-service + port: + number: 6001 + + - path: /idums6002(/|$)(.*) + pathType: Prefix + backend: + service: + name: id-ums-service + port: + number: 6002 + + - path: /reportsweb6550(/|$)(.*) + pathType: Prefix + backend: + service: + name: reports-web-service + port: + number: 6550 + + - path: /reportsapi6551(/|$)(.*) + pathType: Prefix + backend: + service: + name: reports-api-service + port: + number: 6551 + + - path: /reportsdesigner6553(/|$)(.*) + pathType: Prefix + backend: + service: + name: reports-reportservice-service + port: + number: 6553 + + - path: /reportsviewer6554(/|$)(.*) + pathType: Prefix + backend: + service: + name: reports-viewer-service + port: + number: 6554 + + - path: /reportsjobs6552(/|$)(.*) + pathType: Prefix + backend: + service: + name: reports-jobs-service + port: + number: 6552 + + - path: /boldetl/(/|$)(.*) + pathType: Prefix + backend: + service: + name: bold-etl-service + port: + number: 6009 \ No newline at end of file diff --git a/upgrade/6-3_upgrade/istio_gateway.yaml b/upgrade/6-3_upgrade/istio_gateway.yaml new file mode 100644 index 0000000..577d2d8 --- /dev/null +++ b/upgrade/6-3_upgrade/istio_gateway.yaml @@ -0,0 +1,141 @@ +apiVersion: networking.istio.io/v1alpha3 +kind: Gateway +metadata: + namespace: + name: boldreports-gateway +spec: + selector: + istio: ingressgateway # use Istio default gateway implementation + servers: + - port: + number: 80 + name: http + protocol: HTTP + # tls: + # httpsRedirect: true + hosts: + - "*" + # - example.com + # - port: + # number: 443 + # name: https + # protocol: HTTPS + # tls: + # mode: SIMPLE + # credentialName: boldreports-tls + # hosts: + # - example.com +--- +apiVersion: networking.istio.io/v1alpha3 +kind: VirtualService +metadata: + namespace: + name: boldreports-virtual-service +spec: + hosts: + - "*" + # - example.com + gateways: + - boldreports-gateway + http: + - match: + - uri: + prefix: /reporting/reportservice + route: + - destination: + port: + number: 6553 + host: reports-reportservice-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /reporting/api + route: + - destination: + port: + number: 6551 + host: reports-api-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /reporting/jobs + route: + - destination: + port: + number: 6552 + host: reports-jobs-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /reporting/viewer + route: + - destination: + port: + number: 6554 + host: reports-viewer-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /reporting + route: + - destination: + port: + number: 6550 + host: reports-web-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /api + route: + - destination: + port: + number: 6001 + host: id-api-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /ums + route: + - destination: + port: + number: 6002 + host: id-ums-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: / + route: + - destination: + port: + number: 6000 + host: id-web-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream + - match: + - uri: + prefix: /etlservice + rewrite: + uri: / + route: + - destination: + port: + number: 6009 + host: bold-etl-service.bold-services.svc.cluster.local + retries: + attempts: 3 + retryOn: gateway-error,connect-failure,refused-stream \ No newline at end of file diff --git a/upgrade/6-3_upgrade/log4net_config.yaml b/upgrade/6-3_upgrade/log4net_config.yaml new file mode 100644 index 0000000..bb6a08d --- /dev/null +++ b/upgrade/6-3_upgrade/log4net_config.yaml @@ -0,0 +1,67 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: log4net-config + namespace: +data: + Log4Net.config: | + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + diff --git a/upgrade/6-3_upgrade/service.yaml b/upgrade/6-3_upgrade/service.yaml new file mode 100644 index 0000000..a20c033 --- /dev/null +++ b/upgrade/6-3_upgrade/service.yaml @@ -0,0 +1,152 @@ +apiVersion: v1 +kind: Service +metadata: + name: id-web-service + namespace: + labels: + app: id-web +spec: + type: NodePort + ports: + - name: id-web-port + port: 6000 + targetPort: 80 + protocol: TCP + selector: + app: id-web +--- +apiVersion: v1 +kind: Service +metadata: + name: id-api-service + namespace: + labels: + app: id-api +spec: + type: NodePort + ports: + - name: id-api-port + port: 6001 + targetPort: 80 + protocol: TCP + selector: + app: id-api +--- +apiVersion: v1 +kind: Service +metadata: + name: id-ums-service + namespace: + labels: + app: id-ums +spec: + type: NodePort + ports: + - name: id-ums-port + port: 6002 + targetPort: 80 + protocol: TCP + selector: + app: id-ums +--- +apiVersion: v1 +kind: Service +metadata: + name: reports-web-service + namespace: + labels: + app: reports-web +spec: + type: NodePort + ports: + - name: reports-web-port + port: 6550 + targetPort: 80 + protocol: TCP + selector: + app: reports-web +--- +apiVersion: v1 +kind: Service +metadata: + name: reports-api-service + namespace: + labels: + app: reports-api +spec: + type: NodePort + ports: + - name: reports-api-port + port: 6551 + targetPort: 80 + protocol: TCP + selector: + app: reports-api +--- +apiVersion: v1 +kind: Service +metadata: + name: reports-jobs-service + namespace: + labels: + app: reports-jobs +spec: + type: NodePort + ports: + - name: reports-jobs-port + port: 6552 + targetPort: 80 + protocol: TCP + selector: + app: reports-jobs +--- +apiVersion: v1 +kind: Service +metadata: + name: reports-reportservice-service + namespace: + labels: + app: reports-reportservice +spec: + type: NodePort + ports: + - name: reports-reportservice-port + port: 6553 + targetPort: 80 + protocol: TCP + selector: + app: reports-reportservice +--- +apiVersion: v1 +kind: Service +metadata: + name: reports-viewer-service + namespace: + labels: + app: reports-viewer +spec: + type: NodePort + ports: + - name: reports-viewer-port + port: 6554 + targetPort: 80 + protocol: TCP + selector: + app: reports-viewer +--- +apiVersion: v1 +kind: Service +metadata: + name: bold-etl-service + namespace: + labels: + app: bold-etl +spec: + type: NodePort + ports: + - name: bold-etl-port + port: 6009 + targetPort: 80 + protocol: TCP + selector: + app: bold-etl \ No newline at end of file diff --git a/upgrade/upgrade.md b/upgrade/upgrade.md index 256b954..f87c1c2 100644 --- a/upgrade/upgrade.md +++ b/upgrade/upgrade.md @@ -14,16 +14,16 @@ Before upgrading the Bold Reports to latest version, make sure to take the backu ## Proceeding with upgrade Bold Reports updates the database schema of your current version to the latest version. The upgrade process will retain all the resources and settings from the previous deployment. -You can download the upgrade script from this [link](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/upgrade/upgrade.sh) or use the below command. +You can download the upgrade script from this [link](https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/upgrade/upgrade.sh) or use the below command. ```sh -curl -o upgrade.sh https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.2.32/upgrade/upgrade.sh +curl -o upgrade.sh https://raw.githubusercontent.com/boldreports/bold-reports-kubernetes/v6.3.16/upgrade/upgrade.sh ``` Run the following command to execute the shell script to upgrade Bold Reports. ```sh -./upgrade.sh --version="6.2.32" --namespace="bold-services" +./upgrade.sh --version="6.3.16" --namespace="bold-services" ``` diff --git a/upgrade/upgrade.sh b/upgrade/upgrade.sh index 119bd27..d8edcc5 100644 --- a/upgrade/upgrade.sh +++ b/upgrade/upgrade.sh @@ -26,13 +26,13 @@ else namespace="default" fi - kubectl set image deployment/id-web-deployment id-web-container=us-docker.pkg.dev/boldreports/v6-2-32/bold-identity:$version --namespace=$namespace --record - kubectl set image deployment/id-api-deployment id-api-container=us-docker.pkg.dev/boldreports/v6-2-32/bold-idp-api:$version --namespace=$namespace --record - kubectl set image deployment/id-ums-deployment id-ums-container=us-docker.pkg.dev/boldreports/v6-2-32/bold-ums:$version --namespace=$namespace --record - kubectl set image deployment/reports-web-deployment reports-web-container=us-docker.pkg.dev/boldreports/v6-2-32/boldreports-server:$version --namespace=$namespace --record - kubectl set image deployment/reports-api-deployment reports-api-container=us-docker.pkg.dev/boldreports/v6-2-32/boldreports-server-api:$version --namespace=$namespace --record - kubectl set image deployment/reports-jobs-deployment reports-jobs-container=us-docker.pkg.dev/boldreports/v6-2-32/boldreports-server-jobs:$version --namespace=$namespace --record - kubectl set image deployment/reports-reportservice-deployment reports-reportservice-container=us-docker.pkg.dev/boldreports/v6-2-32/boldreports-designer:$version --namespace=$namespace --record - kubectl set image deployment/reports-viewer-deployment reports-viewer-container=us-docker.pkg.dev/boldreports/v6-2-32/boldreports-viewer:$version --namespace=$namespace --record - kubectl set image deployment/bold-etl-deployment bold-etl-container=us-docker.pkg.dev/boldreports/v6-2-32/bold-etl:$version --namespace=$namespace --record + kubectl set image deployment/id-web-deployment id-web-container=us-docker.pkg.dev/boldreports/v6-3-16/bold-identity:$version --namespace=$namespace --record + kubectl set image deployment/id-api-deployment id-api-container=us-docker.pkg.dev/boldreports/v6-3-16/bold-idp-api:$version --namespace=$namespace --record + kubectl set image deployment/id-ums-deployment id-ums-container=us-docker.pkg.dev/boldreports/v6-3-16/bold-ums:$version --namespace=$namespace --record + kubectl set image deployment/reports-web-deployment reports-web-container=us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server:$version --namespace=$namespace --record + kubectl set image deployment/reports-api-deployment reports-api-container=us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server-api:$version --namespace=$namespace --record + kubectl set image deployment/reports-jobs-deployment reports-jobs-container=us-docker.pkg.dev/boldreports/v6-3-16/boldreports-server-jobs:$version --namespace=$namespace --record + kubectl set image deployment/reports-reportservice-deployment reports-reportservice-container=us-docker.pkg.dev/boldreports/v6-3-16/boldreports-designer:$version --namespace=$namespace --record + kubectl set image deployment/reports-viewer-deployment reports-viewer-container=us-docker.pkg.dev/boldreports/v6-3-16/boldreports-viewer:$version --namespace=$namespace --record + kubectl set image deployment/bold-etl-deployment bold-etl-container=us-docker.pkg.dev/boldreports/v6-3-16/bold-etl:$version --namespace=$namespace --record fi