Skip to content

Commit

Permalink
feat: Prdp 41 ci update helm chart (#7)
Browse files Browse the repository at this point in the history
* [PRDP-41] ci: Updating helm chart values

* [PRDP-41] ci: Updating helm chart values with canary and affinity configs

* [PRDP-41] ci: updated helm charts in order to introduce secret and config valus

* [PRDP-41] ci: updated helm charts in order to introduce secret and config values

* minor fix

---------

Co-authored-by: Alessio Cialini <[email protected]>
  • Loading branch information
pasqualespica and Alessio Cialini authored Jun 16, 2023
1 parent 7a4d509 commit 8847209
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 27 deletions.
58 changes: 49 additions & 9 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
microservice-chart:
namespace: "<namespace>" # TODO
namespace: "receipts"
nameOverride: ""
fullnameOverride: ""
image:
repository: pagopadcommonacr.azurecr.io/pagopa<project-name> # TODO
repository: ghcr.io/pagopa/pagopa-receipt-pdf-datastore
tag: "0.0.1"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
Expand All @@ -29,8 +29,8 @@ microservice-chart:
port: 80
ingress:
create: true
host: "weudev.<namespace>.internal.dev.platform.pagopa.it" # TODO
path: /pagopa-<project-name>-service/(.*) # TODO
host: "weudev.receipts.internal.dev.platform.pagopa.it"
path: /pagopa-receipt-pdf-datastore/(.*)
serviceAccount:
create: false
annotations: {}
Expand Down Expand Up @@ -61,13 +61,53 @@ microservice-chart:
type: Utilization # Allowed types are 'Utilization' or 'AverageValue'
value: "75"
envConfig:
WEBSITE_SITE_NAME: "pagopa<project-name>" # required to show cloud role name in application insights # TODO
WEBSITE_SITE_NAME: "pagopareceiptpdfdatastore" # required to show cloud role name in application insights
FUNCTIONS_WORKER_RUNTIME: "java"
RECEIPT_QUEUE_TOPIC: 'pagopa-d-weu-receipts-queue-receipt-waiting-4-gen'
COSMOS_RECEIPT_QUEUE_MAX_RETRY: '5'
PDF_ENGINE_ENDPOINT: 'https://api.dev.platform.pagopa.it/shared/pdf-engine/v1/generate-pdf'
COSMOS_RECEIPT_SERVICE_ENDPOINT: 'https://pagopa-d-weu-receipts-ds-cosmos-account.documents.azure.com:443/'
COSMOS_RECEIPT_DB_NAME: 'db'
COSMOS_RECEIPT_CONTAINER_NAME: 'receipts'
PDF_BLOB_STORAGE_ENDPOINT: 'https://pagopadweureceiptsfnsa.blob.core.windows.net'
PDF_BLOB_STORAGE_CONTAINER: 'pagopa-d-weu-receipts-azure-blob-receipt-st-attach'
envSecret:
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' # TODO set in kv
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string'
PDF_BLOB_STORAGE_CONN_STRING: 'pdf-blob-storage-d-connection-string'
COSMOS_RECEIPTS_CONN_STRING: 'cosmos-receipt-d-connection-string'
RECEIPT_QUEUE_CONN_STRING: 'receipt-queue-d-connection-string'
COSMOS_BIZ_EVENT_CONN_STRING: 'cosmos-biz-event-d-connection-string'
OCP_APIM_SUBSCRIPTION_KEY: 'shared-apim-d-subscription-key'
COSMOS_RECEIPT_KEY: 'cosmos-receipt-d-key'
keyvault:
name: "pagopa-d-<namespace>-kv" # TODO
name: "pagopa-d-receipts-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"
nodeSelector: {}
tolerations: []
affinity: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node_type
operator: In
values:
- user
canaryDelivery:
create: true
ingress:
create: true
canary:
type: header
headerName: X-Canary
headerValue: canary
weightPercent: 0
service:
create: true
deployment:
create: true
image:
repository: ghcr.io/pagopa/pagopa-receipt-pdf-datastore
tag: "0.0.1"
pullPolicy: Always
envConfig:
envSecret:
58 changes: 49 additions & 9 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
microservice-chart:
namespace: "<namespace>" # TODO
namespace: "receipts"
nameOverride: ""
fullnameOverride: ""
image:
repository: pagopapcommonacr.azurecr.io/pagopa<project-name> # TODO
repository: ghcr.io/pagopa/pagopa-receipt-pdf-datastore
tag: "0.0.1"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
Expand All @@ -29,8 +29,8 @@ microservice-chart:
port: 80
ingress:
create: true
host: "weuprod.<namespace>.internal.platform.pagopa.it" # TODO
path: /pagopa-<project-name>-service/(.*) # TODO
host: "weuprod.receipts.internal.platform.pagopa.it"
path: /pagopa-receipt-pdf-datastore/(.*) #
serviceAccount:
create: false
annotations: {}
Expand Down Expand Up @@ -61,13 +61,53 @@ microservice-chart:
type: Utilization # Allowed types are 'Utilization' or 'AverageValue'
value: "75"
envConfig:
WEBSITE_SITE_NAME: "pagopa<project-name>" # required to show cloud role name in application insights # TODO
WEBSITE_SITE_NAME: "pagopareceiptpdfdatastore" # required to show cloud role name in application insights
FUNCTIONS_WORKER_RUNTIME: "java"
RECEIPT_QUEUE_TOPIC: 'pagopa-p-weu-receipts-queue-receipt-waiting-4-gen'
COSMOS_RECEIPT_QUEUE_MAX_RETRY: '5'
PDF_ENGINE_ENDPOINT: 'https://api.prod.platform.pagopa.it/shared/pdf-engine/v1/generate-pdf'
COSMOS_RECEIPT_SERVICE_ENDPOINT: 'https://pagopa-p-weu-receipts-ds-cosmos-account.documents.azure.com:443/'
COSMOS_RECEIPT_DB_NAME: 'db'
COSMOS_RECEIPT_CONTAINER_NAME: 'receipts'
PDF_BLOB_STORAGE_ENDPOINT: 'https://pagopapweureceiptsfnsa.blob.core.windows.net'
PDF_BLOB_STORAGE_CONTAINER: 'pagopa-p-weu-receipts-azure-blob-receipt-st-attach'
envSecret:
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' # TODO set in kv
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-p-connection-string'
PDF_BLOB_STORAGE_CONN_STRING: 'pdf-blob-storage-p-connection-string'
COSMOS_RECEIPTS_CONN_STRING: 'cosmos-receipt-p-connection-string'
RECEIPT_QUEUE_CONN_STRING: 'receipt-queue-p-connection-string'
COSMOS_BIZ_EVENT_CONN_STRING: 'cosmos-biz-event-p-connection-string'
OCP_APIM_SUBSCRIPTION_KEY: 'shared-apim-p-subscription-key'
COSMOS_RECEIPT_KEY: 'cosmos-receipt-p-key'
keyvault:
name: "pagopa-p-<namespace>-kv" # TODO
name: "pagopa-p-receipts-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"
nodeSelector: {}
tolerations: []
affinity: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node_type
operator: In
values:
- user
canaryDelivery:
create: true
ingress:
create: true
canary:
type: header
headerName: X-Canary
headerValue: canary
weightPercent: 0
service:
create: true
deployment:
create: true
image:
repository: ghcr.io/pagopa/pagopa-receipt-pdf-datastore
tag: "0.0.1"
pullPolicy: Always
envConfig:
envSecret:
58 changes: 49 additions & 9 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
microservice-chart:
namespace: "<namespace>" # TODO
namespace: "receipts"
nameOverride: ""
fullnameOverride: ""
image:
repository: pagopaucommonacr.azurecr.io/pagopa<project-name> # TODO
repository: ghcr.io/pagopa/pagopa-receipt-pdf-datastore
tag: "0.0.1"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
Expand All @@ -29,8 +29,8 @@ microservice-chart:
port: 80
ingress:
create: true
host: "weuuat.<namespace>.internal.uat.platform.pagopa.it" # TODO
path: /pagopa-<project-name>-service/(.*) # TODO
host: "weuuat.receipts.internal.uat.platform.pagopa.it"
path: /pagopa-receipt-pdf-datastore/(.*)
serviceAccount:
create: false
annotations: {}
Expand Down Expand Up @@ -61,13 +61,53 @@ microservice-chart:
type: Utilization # Allowed types are 'Utilization' or 'AverageValue'
value: "75"
envConfig:
WEBSITE_SITE_NAME: "pagopa<project-name>" # required to show cloud role name in application insights # TODO
WEBSITE_SITE_NAME: "pagopareceiptpdfdatastore" # required to show cloud role name in application insights
FUNCTIONS_WORKER_RUNTIME: "java"
RECEIPT_QUEUE_TOPIC: 'pagopa-u-weu-receipts-queue-receipt-waiting-4-gen'
COSMOS_RECEIPT_QUEUE_MAX_RETRY: '5'
PDF_ENGINE_ENDPOINT: 'https://api.uat.platform.pagopa.it/shared/pdf-engine/v1/generate-pdf'
COSMOS_RECEIPT_SERVICE_ENDPOINT: 'https://pagopa-u-weu-receipts-ds-cosmos-account.documents.azure.com:443/'
COSMOS_RECEIPT_DB_NAME: 'db'
COSMOS_RECEIPT_CONTAINER_NAME: 'receipts'
PDF_BLOB_STORAGE_ENDPOINT: 'https://pagopauweureceiptsfnsa.blob.core.windows.net'
PDF_BLOB_STORAGE_CONTAINER: 'pagopa-u-weu-receipts-azure-blob-receipt-st-attach'
envSecret:
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string' # TODO set in kv
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-u-connection-string'
PDF_BLOB_STORAGE_CONN_STRING: 'pdf-blob-storage-u-connection-string'
COSMOS_RECEIPTS_CONN_STRING: 'cosmos-receipt-u-connection-string'
RECEIPT_QUEUE_CONN_STRING: 'receipt-queue-u-connection-string'
COSMOS_BIZ_EVENT_CONN_STRING: 'cosmos-biz-event-u-connection-string'
OCP_APIM_SUBSCRIPTION_KEY: 'shared-apim-u-subscription-key'
COSMOS_RECEIPT_KEY: 'cosmos-receipt-u-key'
keyvault:
name: "pagopa-u-<namespace>-kv" # TODO
name: "pagopa-u-receipts-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"
nodeSelector: {}
tolerations: []
affinity: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node_type
operator: In
values:
- user
canaryDelivery:
create: true
ingress:
create: true
canary:
type: header
headerName: X-Canary
headerValue: canary
weightPercent: 0
service:
create: true
deployment:
create: true
image:
repository: ghcr.io/pagopa/pagopa-receipt-pdf-datastore
tag: "0.0.1"
pullPolicy: Always
envConfig:
envSecret:

0 comments on commit 8847209

Please sign in to comment.