From 6bfb14305c90afdf10cd4f1089b441544e39d286 Mon Sep 17 00:00:00 2001 From: Manuel Rafeli Date: Mon, 13 May 2024 17:15:48 +0200 Subject: [PATCH] chore: Use Container App name as url when calling a container app (#439) --- helm/.helmignore | 23 ---- helm/Chart.yaml | 24 ---- helm/pnpg/.helmignore | 23 ---- helm/pnpg/Chart.yaml | 24 ---- helm/pnpg/templates/NOTES.txt | 22 ---- helm/pnpg/templates/_helpers.tpl | 51 --------- helm/pnpg/templates/configmaps.yaml | 12 -- helm/pnpg/templates/deployment.yaml | 101 ----------------- helm/pnpg/templates/hpa.yaml | 29 ----- helm/pnpg/templates/ingress.yaml | 62 ----------- helm/pnpg/templates/service.yaml | 16 --- .../pnpg/templates/tests/test-connection.yaml | 15 --- helm/pnpg/values-dev.yaml | 34 ------ helm/pnpg/values-prod.yaml | 33 ------ helm/pnpg/values-uat.yaml | 34 ------ helm/pnpg/values.yaml | 88 --------------- helm/templates/NOTES.txt | 22 ---- helm/templates/_helpers.tpl | 51 --------- helm/templates/configmaps.yaml | 12 -- helm/templates/deployment.yaml | 103 ------------------ helm/templates/hpa.yaml | 29 ----- helm/templates/ingress.yaml | 62 ----------- helm/templates/pdb.yaml | 12 -- helm/templates/service.yaml | 16 --- helm/templates/tests/test-connection.yaml | 15 --- helm/values-dev.yaml | 45 -------- helm/values-prod.yaml | 48 -------- helm/values-uat.yaml | 46 -------- helm/values.yaml | 96 ---------------- .../env/dev-pnpg/terraform.tfvars | 10 +- infra/container_apps/env/dev/terraform.tfvars | 10 +- .../env/prod-pnpg/terraform.tfvars | 10 +- .../container_apps/env/prod/terraform.tfvars | 10 +- .../env/uat-pnpg/terraform.tfvars | 10 +- infra/container_apps/env/uat/terraform.tfvars | 10 +- 35 files changed, 30 insertions(+), 1178 deletions(-) delete mode 100644 helm/.helmignore delete mode 100644 helm/Chart.yaml delete mode 100644 helm/pnpg/.helmignore delete mode 100644 helm/pnpg/Chart.yaml delete mode 100644 helm/pnpg/templates/NOTES.txt delete mode 100644 helm/pnpg/templates/_helpers.tpl delete mode 100644 helm/pnpg/templates/configmaps.yaml delete mode 100644 helm/pnpg/templates/deployment.yaml delete mode 100644 helm/pnpg/templates/hpa.yaml delete mode 100644 helm/pnpg/templates/ingress.yaml delete mode 100644 helm/pnpg/templates/service.yaml delete mode 100644 helm/pnpg/templates/tests/test-connection.yaml delete mode 100644 helm/pnpg/values-dev.yaml delete mode 100644 helm/pnpg/values-prod.yaml delete mode 100644 helm/pnpg/values-uat.yaml delete mode 100644 helm/pnpg/values.yaml delete mode 100644 helm/templates/NOTES.txt delete mode 100644 helm/templates/_helpers.tpl delete mode 100644 helm/templates/configmaps.yaml delete mode 100644 helm/templates/deployment.yaml delete mode 100644 helm/templates/hpa.yaml delete mode 100644 helm/templates/ingress.yaml delete mode 100644 helm/templates/pdb.yaml delete mode 100644 helm/templates/service.yaml delete mode 100644 helm/templates/tests/test-connection.yaml delete mode 100644 helm/values-dev.yaml delete mode 100644 helm/values-prod.yaml delete mode 100644 helm/values-uat.yaml delete mode 100644 helm/values.yaml diff --git a/helm/.helmignore b/helm/.helmignore deleted file mode 100644 index 0e8a0eb36..000000000 --- a/helm/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/Chart.yaml b/helm/Chart.yaml deleted file mode 100644 index 30d9fadb4..000000000 --- a/helm/Chart.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v2 -name: selfcare-b4f-dashboard -description: A Helm chart for Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "0.0.1-SNAPSHOT" diff --git a/helm/pnpg/.helmignore b/helm/pnpg/.helmignore deleted file mode 100644 index 0e8a0eb36..000000000 --- a/helm/pnpg/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/helm/pnpg/Chart.yaml b/helm/pnpg/Chart.yaml deleted file mode 100644 index 30d9fadb4..000000000 --- a/helm/pnpg/Chart.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v2 -name: selfcare-b4f-dashboard -description: A Helm chart for Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "0.0.1-SNAPSHOT" diff --git a/helm/pnpg/templates/NOTES.txt b/helm/pnpg/templates/NOTES.txt deleted file mode 100644 index 029b97730..000000000 --- a/helm/pnpg/templates/NOTES.txt +++ /dev/null @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Values.namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "this.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Values.namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Values.namespace }} svc -w {{ include "this.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Values.namespace }} {{ include "this.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Values.namespace }} -l "app.kubernetes.io/name={{ include "this.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Values.namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Values.namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} diff --git a/helm/pnpg/templates/_helpers.tpl b/helm/pnpg/templates/_helpers.tpl deleted file mode 100644 index 129958ef9..000000000 --- a/helm/pnpg/templates/_helpers.tpl +++ /dev/null @@ -1,51 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "this.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "this.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "this.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "this.labels" -}} -helm.sh/chart: {{ include "this.chart" . }} -{{ include "this.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "this.selectorLabels" -}} -app.kubernetes.io/name: {{ include "this.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} diff --git a/helm/pnpg/templates/configmaps.yaml b/helm/pnpg/templates/configmaps.yaml deleted file mode 100644 index fd6a82722..000000000 --- a/helm/pnpg/templates/configmaps.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} -data: - {{- with .Values.config }} - {{- toYaml . | nindent 2 }} - {{- end }} - {{- with .Values.configEnvSpecific }} - {{- toYaml . | nindent 2 }} - {{- end }} diff --git a/helm/pnpg/templates/deployment.yaml b/helm/pnpg/templates/deployment.yaml deleted file mode 100644 index 2a50de11d..000000000 --- a/helm/pnpg/templates/deployment.yaml +++ /dev/null @@ -1,101 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "this.selectorLabels" . | nindent 6 }} - template: - metadata: - annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmaps.yaml") . | sha256sum }} - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "this.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - envFrom: - - secretRef: - name: application-insights - - secretRef: - name: b4f-dashboard - - secretRef: - name: support-secrets - - secretRef: - name: common-secrets - - configMapRef: - name: inner-service-url - - configMapRef: - name: jwt - - configMapRef: - name: jwt-exchange - - configMapRef: - name: common - - configMapRef: - name: {{ include "this.fullname" . }} - ports: - - name: http - containerPort: {{ .Values.containers.portNumber }} - protocol: TCP - livenessProbe: - httpGet: - path: /actuator/health/liveness - port: 8080 - scheme: HTTP - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 5 - readinessProbe: - httpGet: - path: /actuator/health/readiness - port: 8080 - scheme: HTTP - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - startupProbe: - httpGet: - path: /actuator/health - port: 8080 - scheme: HTTP - initialDelaySeconds: 20 - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 30 - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/helm/pnpg/templates/hpa.yaml b/helm/pnpg/templates/hpa.yaml deleted file mode 100644 index 33e329098..000000000 --- a/helm/pnpg/templates/hpa.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "this.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/helm/pnpg/templates/ingress.yaml b/helm/pnpg/templates/ingress.yaml deleted file mode 100644 index 7336dd8e3..000000000 --- a/helm/pnpg/templates/ingress.yaml +++ /dev/null @@ -1,62 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "this.fullname" . -}} -{{- $svcPort := .Values.service.port -}} -{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} - {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} - {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} - {{- end }} -{{- end }} -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1 -{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} -kind: Ingress -metadata: - name: {{ $fullName }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} - ingressClassName: {{ .Values.ingress.className }} - {{- end }} - {{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} - {{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ .path }} - {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: {{ .pathType }} - {{- end }} - backend: - {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} - service: - name: {{ $fullName }} - port: - number: {{ $svcPort }} - {{- else }} - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/helm/pnpg/templates/service.yaml b/helm/pnpg/templates/service.yaml deleted file mode 100644 index 815d50492..000000000 --- a/helm/pnpg/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: {{ .Values.service.targetPort }} - protocol: TCP - name: http - selector: - {{- include "this.selectorLabels" . | nindent 4 }} diff --git a/helm/pnpg/templates/tests/test-connection.yaml b/helm/pnpg/templates/tests/test-connection.yaml deleted file mode 100644 index 0b56fbfe3..000000000 --- a/helm/pnpg/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "this.fullname" . }}-test-connection" - labels: - {{- include "this.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "this.fullname" . }}:{{ .Values.service.port }}/actuator/health/liveness'] - restartPolicy: Never diff --git a/helm/pnpg/values-dev.yaml b/helm/pnpg/values-dev.yaml deleted file mode 100644 index f5adaaa68..000000000 --- a/helm/pnpg/values-dev.yaml +++ /dev/null @@ -1,34 +0,0 @@ -replicaCount: 0 - -image: - repository: selcdcommonacr.azurecr.io/selfcaredashboardbackend - -ingress: - annotations: - nginx.ingress.kubernetes.io/cors-allow-origin: "https://imprese.dev.notifichedigitali.it,https://api-pnpg.dev.selfcare.pagopa.it,https://pnpg.dev.selfcare.pagopa.it,http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:3003" - tls: - - hosts: - - dev01.pnpg.internal.dev.selfcare.pagopa.it - secretName: dev01-pnpg-internal-dev-selfcare-pagopa-it - hosts: - - host: "dev01.pnpg.internal.dev.selfcare.pagopa.it" - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - -autoscaling: - enabled: false - minReplicas: 0 - maxReplicas: 0 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -configEnvSpecific: - JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar" - APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF" - B4F_DASHBOARD_LOG_LEVEL: "DEBUG" - REST_CLIENT_LOGGER_LEVEL: "FULL" - JWT_TOKEN_EXCHANGE_ISSUER: "https://pnpg.dev.selfcare.pagopa.it" - PUBLIC_FILE_STORAGE_BASE_URL: "https://selcdweupnpgcheckoutsa.z6.web.core.windows.net" - JWT_ISSUER: "https://hub-login.spid.dev.pn.pagopa.it" - SELFCARE_USER_URL: "https://selc-d-pnpg-user-ms-ca.politewater-9af33050.westeurope.azurecontainerapps.io" diff --git a/helm/pnpg/values-prod.yaml b/helm/pnpg/values-prod.yaml deleted file mode 100644 index 1da32b981..000000000 --- a/helm/pnpg/values-prod.yaml +++ /dev/null @@ -1,33 +0,0 @@ -image: - repository: selcpcommonacr.azurecr.io/selfcaredashboardbackend - pullPolicy: Always # TODO change me in IfNotPresent when each build will have a different tag - tag: 0.0.1-SNAPSHOT - -ingress: - annotations: - nginx.ingress.kubernetes.io/cors-allow-origin: "https://imprese.notifichedigitali.it,https://api-pnpg.selfcare.pagopa.it,https://pnpg.selfcare.pagopa.it" - tls: - - hosts: - - prod01.pnpg.internal.selfcare.pagopa.it - secretName: prod01-pnpg-internal-selfcare-pagopa-it - hosts: - - host: "prod01.pnpg.internal.selfcare.pagopa.it" - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -configEnvSpecific: - JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar" - APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF" - B4F_DASHBOARD_LOG_LEVEL: "INFO" - REST_CLIENT_LOGGER_LEVEL: "BASIC" - JWT_TOKEN_EXCHANGE_ISSUER: "https://pnpg.selfcare.pagopa.it" - PUBLIC_FILE_STORAGE_BASE_URL: "https://selcpweupnpgcheckoutsa.z6.web.core.windows.net" - SELFCARE_USER_URL: "https://selc-p-pnpg-user-ms-ca.calmmoss-0be48755.westeurope.azurecontainerapps.io" \ No newline at end of file diff --git a/helm/pnpg/values-uat.yaml b/helm/pnpg/values-uat.yaml deleted file mode 100644 index 393ae2515..000000000 --- a/helm/pnpg/values-uat.yaml +++ /dev/null @@ -1,34 +0,0 @@ -replicaCount: 0 - -image: - repository: selcucommonacr.azurecr.io/selfcaredashboardbackend - tag: 0.0.1-SNAPSHOT - -ingress: - annotations: - nginx.ingress.kubernetes.io/cors-allow-origin: "https://imprese.uat.notifichedigitali.it,https://api-pnpg.uat.selfcare.pagopa.it,https://pnpg.uat.selfcare.pagopa.it,http://localhost:3000,http://localhost:3001,http://localhost:3002" - tls: - - hosts: - - uat01.pnpg.internal.uat.selfcare.pagopa.it - secretName: uat01-pnpg-internal-uat-selfcare-pagopa-it - hosts: - - host: "uat01.pnpg.internal.uat.selfcare.pagopa.it" - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - -autoscaling: - enabled: false - minReplicas: 0 - maxReplicas: 0 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -configEnvSpecific: - JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar" - APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF" - B4F_DASHBOARD_LOG_LEVEL: "DEBUG" - REST_CLIENT_LOGGER_LEVEL: "FULL" - JWT_TOKEN_EXCHANGE_ISSUER: "https://pnpg.uat.selfcare.pagopa.it" - PUBLIC_FILE_STORAGE_BASE_URL: "https://selcuweupnpgcheckoutsa.z6.web.core.windows.net" - SELFCARE_USER_URL: "https://selc-u-pnpg-user-ms-ca.orangeground-0bd2d4dc.westeurope.azurecontainerapps.io" \ No newline at end of file diff --git a/helm/pnpg/values.yaml b/helm/pnpg/values.yaml deleted file mode 100644 index 1751f1bb2..000000000 --- a/helm/pnpg/values.yaml +++ /dev/null @@ -1,88 +0,0 @@ -# Default values for selfcare-dashboard-backend. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -namespace: pnpg - -replicaCount: 1 - -image: - repository: selcdcommonacr.azurecr.io/selfcaredashboardbackend - pullPolicy: Always - # Overrides the image tag whose default is the chart appVersion. - tag: "latest" - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "b4f-dashboard" - -containers: - portNumber: 8080 - -podAnnotations: {} - -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 8080 - targetPort: 8080 - -ingress: - enabled: true - className: "" - annotations: - kubernetes.io/ingress.class: "nginx" - nginx.ingress.kubernetes.io/rewrite-target: "/$1" - nginx.ingress.kubernetes.io/ssl-redirect: "false" - nginx.ingress.kubernetes.io/use-regex: "true" - nginx.ingress.kubernetes.io/enable-cors: "true" - nginx.ingress.kubernetes.io/cors-allow-headers: "*" - nginx.ingress.kubernetes.io/cors-allow-origin: "https://selfcare.pagopa.it" - - #tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -config: - APPLICATIONINSIGHTS_ROLE_NAME: "b4f-dashboard" - REST_CLIENT_READ_TIMEOUT: "30000" - REST_CLIENT_CONNECT_TIMEOUT: "30000" - USER_STATES_FILTER: "ACTIVE,SUSPENDED" - SUPPORT_API_ZENDESK_REDIRECT_URI: "https://send.assistenza.pagopa.it/hc/it/requests/new" - SUPPORT_API_ZENDESK_ORGANIZATION: "_users_hc_send" \ No newline at end of file diff --git a/helm/templates/NOTES.txt b/helm/templates/NOTES.txt deleted file mode 100644 index 029b97730..000000000 --- a/helm/templates/NOTES.txt +++ /dev/null @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Values.namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "this.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Values.namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Values.namespace }} svc -w {{ include "this.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Values.namespace }} {{ include "this.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Values.namespace }} -l "app.kubernetes.io/name={{ include "this.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Values.namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Values.namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} diff --git a/helm/templates/_helpers.tpl b/helm/templates/_helpers.tpl deleted file mode 100644 index 129958ef9..000000000 --- a/helm/templates/_helpers.tpl +++ /dev/null @@ -1,51 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "this.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "this.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "this.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "this.labels" -}} -helm.sh/chart: {{ include "this.chart" . }} -{{ include "this.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "this.selectorLabels" -}} -app.kubernetes.io/name: {{ include "this.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} diff --git a/helm/templates/configmaps.yaml b/helm/templates/configmaps.yaml deleted file mode 100644 index fd6a82722..000000000 --- a/helm/templates/configmaps.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} -data: - {{- with .Values.config }} - {{- toYaml . | nindent 2 }} - {{- end }} - {{- with .Values.configEnvSpecific }} - {{- toYaml . | nindent 2 }} - {{- end }} diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml deleted file mode 100644 index 436b6e641..000000000 --- a/helm/templates/deployment.yaml +++ /dev/null @@ -1,103 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "this.selectorLabels" . | nindent 6 }} - template: - metadata: - annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmaps.yaml") . | sha256sum }} - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "this.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - envFrom: - - secretRef: - name: application-insights - - secretRef: - name: b4f-dashboard - - secretRef: - name: support-secrets - - secretRef: - name: common-secrets - - secretRef: - name: pagopa-backoffice-secrets - - configMapRef: - name: inner-service-url - - configMapRef: - name: jwt - - configMapRef: - name: jwt-exchange - - configMapRef: - name: common - - configMapRef: - name: {{ include "this.fullname" . }} - ports: - - name: http - containerPort: {{ .Values.containers.portNumber }} - protocol: TCP - livenessProbe: - httpGet: - path: /actuator/health/liveness - port: 8080 - scheme: HTTP - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 5 - readinessProbe: - httpGet: - path: /actuator/health/readiness - port: 8080 - scheme: HTTP - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - startupProbe: - httpGet: - path: /actuator/health - port: 8080 - scheme: HTTP - initialDelaySeconds: 20 - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 30 - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/helm/templates/hpa.yaml b/helm/templates/hpa.yaml deleted file mode 100644 index 33e329098..000000000 --- a/helm/templates/hpa.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "this.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml deleted file mode 100644 index 7336dd8e3..000000000 --- a/helm/templates/ingress.yaml +++ /dev/null @@ -1,62 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "this.fullname" . -}} -{{- $svcPort := .Values.service.port -}} -{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} - {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} - {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} - {{- end }} -{{- end }} -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1 -{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} -kind: Ingress -metadata: - name: {{ $fullName }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} - ingressClassName: {{ .Values.ingress.className }} - {{- end }} - {{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} - {{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ .path }} - {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: {{ .pathType }} - {{- end }} - backend: - {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} - service: - name: {{ $fullName }} - port: - number: {{ $svcPort }} - {{- else }} - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/helm/templates/pdb.yaml b/helm/templates/pdb.yaml deleted file mode 100644 index 20251f475..000000000 --- a/helm/templates/pdb.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if .Values.pdb.enabled }} -apiVersion: policy/v1 -kind: PodDisruptionBudget -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} -spec: - minAvailable: {{ .Values.pdb.minAvailable }} - selector: - matchLabels: - {{- include "this.selectorLabels" . | nindent 6 }} -{{- end }} \ No newline at end of file diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml deleted file mode 100644 index 815d50492..000000000 --- a/helm/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "this.fullname" . }} - namespace: {{ .Values.namespace }} - labels: - {{- include "this.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: {{ .Values.service.targetPort }} - protocol: TCP - name: http - selector: - {{- include "this.selectorLabels" . | nindent 4 }} diff --git a/helm/templates/tests/test-connection.yaml b/helm/templates/tests/test-connection.yaml deleted file mode 100644 index 0b56fbfe3..000000000 --- a/helm/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "this.fullname" . }}-test-connection" - labels: - {{- include "this.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "this.fullname" . }}:{{ .Values.service.port }}/actuator/health/liveness'] - restartPolicy: Never diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml deleted file mode 100644 index 8985a8ef3..000000000 --- a/helm/values-dev.yaml +++ /dev/null @@ -1,45 +0,0 @@ -replicaCount: 0 - -image: - repository: selcdacr.azurecr.io/selfcaredashboardbackend - -ingress: - annotations: - nginx.ingress.kubernetes.io/cors-allow-origin: "https://dev.selfcare.pagopa.it,http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:3003" - tls: - - hosts: - - selc.internal.dev.selfcare.pagopa.it - secretName: selc-internal-dev-selfcare-pagopa-it - hosts: - - host: selc.internal.dev.selfcare.pagopa.it - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - -resources: - requests: - cpu: 300m - memory: 700M - limits: - cpu: 500m - memory: 1Gi - -autoscaling: - enabled: false - minReplicas: 0 - maxReplicas: 0 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -pdb: - enabled: true - -configEnvSpecific: - JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar" - APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF" - B4F_DASHBOARD_LOG_LEVEL: "DEBUG" - REST_CLIENT_LOGGER_LEVEL: "FULL" - JWT_TOKEN_EXCHANGE_ISSUER: "https://dev.selfcare.pagopa.it" - PUBLIC_FILE_STORAGE_BASE_URL: "https://selcdcheckoutsa.z6.web.core.windows.net" - PAGO_PA_BACKOFFICE_URL: "https://api.dev.platform.pagopa.it/apiconfig/auth/api/v1" - SELFCARE_USER_URL: "https://selc-d-user-ms-ca.politewater-9af33050.westeurope.azurecontainerapps.io" diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml deleted file mode 100644 index d67b93758..000000000 --- a/helm/values-prod.yaml +++ /dev/null @@ -1,48 +0,0 @@ -replicaCount: 2 - -image: - repository: selcpacr.azurecr.io/selfcaredashboardbackend - pullPolicy: Always # TODO change me in IfNotPresent when each build will have a different tag - tag: 0.0.1-SNAPSHOT - -ingress: - annotations: - nginx.ingress.kubernetes.io/cors-allow-origin: "https://selfcare.pagopa.it" - tls: - - hosts: - - selc.internal.selfcare.pagopa.it - secretName: selc-internal-selfcare-pagopa-it - hosts: - - host: "selc.internal.selfcare.pagopa.it" - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - -resources: - requests: - cpu: 300m - memory: 700M - limits: - cpu: 500m - memory: 1Gi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -pdb: - enabled: true - minAvailable: 1 - -configEnvSpecific: - JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar" - APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF" - B4F_DASHBOARD_LOG_LEVEL: "INFO" - REST_CLIENT_LOGGER_LEVEL: "BASIC" - JWT_TOKEN_EXCHANGE_ISSUER: "https://selfcare.pagopa.it" - PUBLIC_FILE_STORAGE_BASE_URL: "https://selcpcheckoutsa.z6.web.core.windows.net" - PAGO_PA_BACKOFFICE_URL: "https://api.platform.pagopa.it/apiconfig/auth/api/v1" - SELFCARE_USER_URL: "https://selc-p-user-ms-ca.greensand-62fc96da.westeurope.azurecontainerapps.io" \ No newline at end of file diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml deleted file mode 100644 index 2ca450004..000000000 --- a/helm/values-uat.yaml +++ /dev/null @@ -1,46 +0,0 @@ -replicaCount: 0 - -image: - repository: selcuacr.azurecr.io/selfcaredashboardbackend - tag: 0.0.1-SNAPSHOT - -ingress: - annotations: - nginx.ingress.kubernetes.io/cors-allow-origin: "https://uat.selfcare.pagopa.it,http://localhost:3000,http://localhost:3001,http://localhost:3002" - tls: - - hosts: - - selc.internal.uat.selfcare.pagopa.it - secretName: selc-internal-uat-selfcare-pagopa-it - hosts: - - host: selc.internal.uat.selfcare.pagopa.it - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - -resources: - requests: - cpu: 300m - memory: 700M - limits: - cpu: 500m - memory: 1Gi - -autoscaling: - enabled: false - minReplicas: 0 - maxReplicas: 0 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -pdb: - enabled: true - -configEnvSpecific: - JAVA_TOOL_OPTIONS: "-javaagent:/applicationinsights-agent.jar" - APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF" - B4F_DASHBOARD_LOG_LEVEL: "DEBUG" - REST_CLIENT_LOGGER_LEVEL: "FULL" - JWT_TOKEN_EXCHANGE_ISSUER: "https://uat.selfcare.pagopa.it" - PUBLIC_FILE_STORAGE_BASE_URL: "https://selcucheckoutsa.z6.web.core.windows.net" - PAGO_PA_BACKOFFICE_URL: "https://api.uat.platform.pagopa.it/apiconfig/auth/api/v1" - SELFCARE_USER_URL: "https://selc-u-user-ms-ca.proudglacier-20652b81.westeurope.azurecontainerapps.io" \ No newline at end of file diff --git a/helm/values.yaml b/helm/values.yaml deleted file mode 100644 index 2ea9461f1..000000000 --- a/helm/values.yaml +++ /dev/null @@ -1,96 +0,0 @@ -# Default values for selfcare-dashboard-backend. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -namespace: selc - -replicaCount: 1 - -image: - repository: selcdacr.azurecr.io/selfcaredashboardbackend - pullPolicy: Always - # Overrides the image tag whose default is the chart appVersion. - tag: "latest" - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "b4f-dashboard" - -containers: - portNumber: 8080 - -podAnnotations: {} - -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 8080 - targetPort: 8080 - -ingress: - enabled: true - className: "" - annotations: - kubernetes.io/ingress.class: "nginx" - nginx.ingress.kubernetes.io/rewrite-target: "/$1" - nginx.ingress.kubernetes.io/ssl-redirect: "false" - nginx.ingress.kubernetes.io/use-regex: "true" - nginx.ingress.kubernetes.io/enable-cors: "true" - nginx.ingress.kubernetes.io/cors-allow-headers: "*" - nginx.ingress.kubernetes.io/cors-allow-origin: "https://selfcare.pagopa.it" - hosts: - - host: "" - paths: - - path: /dashboard/(.*) - pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -pdb: - enabled: false - minAvailable: 1 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -config: - APPLICATIONINSIGHTS_ROLE_NAME: "b4f-dashboard" - REST_CLIENT_READ_TIMEOUT: "45000" - REST_CLIENT_CONNECT_TIMEOUT: "45000" - USER_STATES_FILTER: "ACTIVE,SUSPENDED" - SUPPORT_API_ZENDESK_REDIRECT_URI: "https://selfcare.assistenza.pagopa.it/hc/it/requests/new" - SUPPORT_API_ZENDESK_ORGANIZATION: "_users_hc_selfcare" diff --git a/infra/container_apps/env/dev-pnpg/terraform.tfvars b/infra/container_apps/env/dev-pnpg/terraform.tfvars index 445aa30d5..47ab13d64 100644 --- a/infra/container_apps/env/dev-pnpg/terraform.tfvars +++ b/infra/container_apps/env/dev-pnpg/terraform.tfvars @@ -89,19 +89,19 @@ app_settings = [ }, { name = "MS_CORE_URL" - value = "https://selc-d-pnpg-ms-core-ca.victoriousfield-e39534b8.westeurope.azurecontainerapps.io" + value = "http://selc-d-pnpg-ms-core-ca" }, { name = "USERVICE_PARTY_PROCESS_URL" - value = "https://selc-d-pnpg-ms-core-ca.victoriousfield-e39534b8.westeurope.azurecontainerapps.io" + value = "http://selc-d-pnpg-ms-core-ca" }, { name = "USERVICE_PARTY_REGISTRY_PROXY_URL" - value = "https://selc-d-pnpg-party-reg-proxy-ca.victoriousfield-e39534b8.westeurope.azurecontainerapps.io" + value = "http://selc-d-pnpg-party-reg-proxy-ca" }, { name = "MS_USER_GROUP_URL" - value = "https://selc-d-pnpg-user-group-ca.victoriousfield-e39534b8.westeurope.azurecontainerapps.io" + value = "http://selc-d-pnpg-user-group-ca" }, { name = "USERVICE_USER_REGISTRY_URL" @@ -121,7 +121,7 @@ app_settings = [ }, { name = "SELFCARE_USER_URL" - value = "https://selc-d-pnpg-user-ms-ca.victoriousfield-e39534b8.westeurope.azurecontainerapps.io" + value = "http://selc-d-pnpg-user-ms-ca" }, { name = "B4F_DASHBOARD_SECURITY_CONNECTOR" diff --git a/infra/container_apps/env/dev/terraform.tfvars b/infra/container_apps/env/dev/terraform.tfvars index 9d12d2cbf..9ead938b0 100644 --- a/infra/container_apps/env/dev/terraform.tfvars +++ b/infra/container_apps/env/dev/terraform.tfvars @@ -87,19 +87,19 @@ app_settings = [ }, { name = "MS_CORE_URL" - value = "https://selc-d-ms-core-ca.politewater-9af33050.westeurope.azurecontainerapps.io" + value = "http://selc-d-ms-core-ca" }, { name = "USERVICE_PARTY_PROCESS_URL" - value = "https://selc-d-ms-core-ca.politewater-9af33050.westeurope.azurecontainerapps.io" + value = "http://selc-d-ms-core-ca" }, { name = "USERVICE_PARTY_REGISTRY_PROXY_URL" - value = "https://selc-d-party-reg-proxy-ca.politewater-9af33050.westeurope.azurecontainerapps.io" + value = "http://selc-d-party-reg-proxy-ca" }, { name = "MS_USER_GROUP_URL" - value = "https://selc-d-user-group-ca.politewater-9af33050.westeurope.azurecontainerapps.io" + value = "http://selc-d-user-group-ca" }, { name = "USERVICE_USER_REGISTRY_URL" @@ -119,7 +119,7 @@ app_settings = [ }, { name = "SELFCARE_USER_URL" - value = "https://selc-d-user-ms-ca.politewater-9af33050.westeurope.azurecontainerapps.io" + value = "http://selc-d-user-ms-ca" }, { name = "B4F_DASHBOARD_SECURITY_CONNECTOR" diff --git a/infra/container_apps/env/prod-pnpg/terraform.tfvars b/infra/container_apps/env/prod-pnpg/terraform.tfvars index 0140c49af..200a3f198 100644 --- a/infra/container_apps/env/prod-pnpg/terraform.tfvars +++ b/infra/container_apps/env/prod-pnpg/terraform.tfvars @@ -89,19 +89,19 @@ app_settings = [ }, { name = "MS_CORE_URL" - value = "https://selc-p-pnpg-ms-core-ca.calmmoss-0be48755.westeurope.azurecontainerapps.io" + value = "http://selc-p-pnpg-ms-core-ca" }, { name = "USERVICE_PARTY_PROCESS_URL" - value = "https://selc-p-pnpg-ms-core-ca.calmmoss-0be48755.westeurope.azurecontainerapps.io" + value = "http://selc-p-pnpg-ms-core-ca" }, { name = "USERVICE_PARTY_REGISTRY_PROXY_URL" - value = "https://selc-p-pnpg-party-reg-proxy-ca.calmmoss-0be48755.westeurope.azurecontainerapps.io" + value = "http://selc-p-pnpg-party-reg-proxy-ca" }, { name = "MS_USER_GROUP_URL" - value = "https://selc-p-pnpg-user-group-ca.calmmoss-0be48755.westeurope.azurecontainerapps.io" + value = "http://selc-p-pnpg-user-group-ca" }, { name = "USERVICE_USER_REGISTRY_URL" @@ -121,7 +121,7 @@ app_settings = [ }, { name = "SELFCARE_USER_URL" - value = "https://selc-p-pnpg-user-ms-ca.calmmoss-0be48755.westeurope.azurecontainerapps.io" + value = "http://selc-p-pnpg-user-ms-ca" }, { name = "B4F_DASHBOARD_SECURITY_CONNECTOR" diff --git a/infra/container_apps/env/prod/terraform.tfvars b/infra/container_apps/env/prod/terraform.tfvars index ff542a936..a5148f823 100644 --- a/infra/container_apps/env/prod/terraform.tfvars +++ b/infra/container_apps/env/prod/terraform.tfvars @@ -87,19 +87,19 @@ app_settings = [ }, { name = "MS_CORE_URL" - value = "https://selc-p-ms-core-ca.greensand-62fc96da.westeurope.azurecontainerapps.io" + value = "http://selc-p-ms-core-ca" }, { name = "USERVICE_PARTY_PROCESS_URL" - value = "https://selc-p-ms-core-ca.greensand-62fc96da.westeurope.azurecontainerapps.io" + value = "http://selc-p-ms-core-ca" }, { name = "USERVICE_PARTY_REGISTRY_PROXY_URL" - value = "https://selc-p-party-reg-proxy-ca.greensand-62fc96da.westeurope.azurecontainerapps.io" + value = "http://selc-p-party-reg-proxy-ca" }, { name = "MS_USER_GROUP_URL" - value = "https://selc-p-user-group-ca.greensand-62fc96da.westeurope.azurecontainerapps.io" + value = "http://selc-p-user-group-ca" }, { name = "USERVICE_USER_REGISTRY_URL" @@ -119,7 +119,7 @@ app_settings = [ }, { name = "SELFCARE_USER_URL" - value = "https://selc-p-user-ms-ca.greensand-62fc96da.westeurope.azurecontainerapps.io" + value = "http://selc-p-user-ms-ca" }, { name = "B4F_DASHBOARD_SECURITY_CONNECTOR" diff --git a/infra/container_apps/env/uat-pnpg/terraform.tfvars b/infra/container_apps/env/uat-pnpg/terraform.tfvars index bf223327e..9c860d224 100644 --- a/infra/container_apps/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/env/uat-pnpg/terraform.tfvars @@ -78,19 +78,19 @@ app_settings = [ }, { name = "MS_CORE_URL" - value = "https://selc-u-pnpg-ms-core-ca.orangeground-0bd2d4dc.westeurope.azurecontainerapps.io" + value = "http://selc-u-pnpg-ms-core-ca" }, { name = "USERVICE_PARTY_PROCESS_URL" - value = "https://selc-u-pnpg-ms-core-ca.orangeground-0bd2d4dc.westeurope.azurecontainerapps.io" + value = "http://selc-u-pnpg-ms-core-ca" }, { name = "USERVICE_PARTY_REGISTRY_PROXY_URL" - value = "https://selc-u-pnpg-party-reg-proxy-ca.orangeground-0bd2d4dc.westeurope.azurecontainerapps.io" + value = "http://selc-u-pnpg-party-reg-proxy-ca" }, { name = "MS_USER_GROUP_URL" - value = "https://selc-u-pnpg-user-group-ca.orangeground-0bd2d4dc.westeurope.azurecontainerapps.io" + value = "http://selc-u-pnpg-user-group-ca" }, { name = "USERVICE_USER_REGISTRY_URL" @@ -110,7 +110,7 @@ app_settings = [ }, { name = "SELFCARE_USER_URL" - value = "https://selc-u-pnpg-user-ms-ca.orangeground-0bd2d4dc.westeurope.azurecontainerapps.io" + value = "http://selc-u-pnpg-user-ms-ca" }, { name = "B4F_DASHBOARD_SECURITY_CONNECTOR" diff --git a/infra/container_apps/env/uat/terraform.tfvars b/infra/container_apps/env/uat/terraform.tfvars index f4eeb3989..d324776b5 100644 --- a/infra/container_apps/env/uat/terraform.tfvars +++ b/infra/container_apps/env/uat/terraform.tfvars @@ -76,19 +76,19 @@ app_settings = [ }, { name = "MS_CORE_URL" - value = "https://selc-u-ms-core-ca.proudglacier-20652b81.westeurope.azurecontainerapps.io" + value = "http://selc-u-ms-core-ca" }, { name = "USERVICE_PARTY_PROCESS_URL" - value = "https://selc-u-ms-core-ca.proudglacier-20652b81.westeurope.azurecontainerapps.io" + value = "http://selc-u-ms-core-ca" }, { name = "USERVICE_PARTY_REGISTRY_PROXY_URL" - value = "https://selc-u-party-reg-proxy-ca.proudglacier-20652b81.westeurope.azurecontainerapps.io" + value = "http://selc-u-party-reg-proxy-ca" }, { name = "MS_USER_GROUP_URL" - value = "https://selc-u-user-group-ca.proudglacier-20652b81.westeurope.azurecontainerapps.io" + value = "http://selc-u-user-group-ca" }, { name = "USERVICE_USER_REGISTRY_URL" @@ -108,7 +108,7 @@ app_settings = [ }, { name = "SELFCARE_USER_URL" - value = "https://selc-u-user-ms-ca.proudglacier-20652b81.westeurope.azurecontainerapps.io" + value = "http://selc-u-user-ms-ca" }, { name = "B4F_DASHBOARD_SECURITY_CONNECTOR"