diff --git a/helm/Chart.yaml b/helm/Chart.yaml index d9a14f6..3cd2585 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -6,5 +6,5 @@ version: 0.24.0 appVersion: 0.2.3 dependencies: - name: microservice-chart - version: 1.21.0 + version: 2.4.0 repository: "https://pagopa.github.io/aks-microservice-chart-blueprint" diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index bc9d3cf..049f24f 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -6,6 +6,7 @@ microservice-chart: repository: ghcr.io/pagopa/pagopa-platform-authorizer-config tag: "0.2.3" pullPolicy: Always + # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: httpGet: path: /actuator/health/liveness @@ -22,14 +23,24 @@ microservice-chart: periodSeconds: 10 deployment: create: true - service: + serviceMonitor: create: true + endpoints: + - interval: 10s #jmx-exporter + targetPort: 12345 + path: /metrics + ports: + - 8080 + service: type: ClusterIP - port: 8080 + ports: + - 8080 + - 12345 #jmx-exporter ingress: create: true host: "weudev.shared.internal.dev.platform.pagopa.it" path: /authorizer-config/(.*) + servicePort: 8080 serviceAccount: create: false annotations: {} @@ -50,7 +61,7 @@ microservice-chart: autoscaling: enable: true minReplica: 1 - maxReplica: 3 + maxReplica: 1 pollingInterval: 10 # seconds cooldownPeriod: 50 # seconds triggers: @@ -59,6 +70,12 @@ microservice-chart: # Required type: Utilization # Allowed types are 'Utilization' or 'AverageValue' value: "75" + - type: memory + metadata: + # Required + type: Utilization # Allowed types are 'Utilization' or 'AverageValue' + value: "70" + fileConfig: {} envConfig: WEBSITE_SITE_NAME: 'pagopaplatformauthorizerconfig' ENV: 'dev' @@ -77,6 +94,9 @@ microservice-chart: CLIENT_CONNECTION_TIMEOUT: "10000" APICONFIG_SELFCARE_INTEGRATION_PATH: "https://api.dev.platform.pagopa.it/apiconfig-selfcare-integration/v1" CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}' + envFieldRef: + APP_NAME: "metadata.labels['app.kubernetes.io/instance']" + APP_VERSION: "metadata.labels['app.kubernetes.io/version']" envSecret: APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' OTEL_EXPORTER_OTLP_HEADERS: 'elastic-otel-token-header' @@ -87,7 +107,6 @@ microservice-chart: name: "pagopa-d-shared-kv" tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d" nodeSelector: {} - tolerations: [] affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: