Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix uat deploy #19

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .devops/deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ variables:
${{ if eq(parameters['ENV'], 'dev') }}:
dockerRegistryServiceConnection: $(DEV_CONTAINER_REGISTRY_SERVICE_CONN)
kubernetesServiceConnection: '$(DEV_KUBERNETES_SERVICE_CONN)'
poolImage: 'ubuntu-latest'
${{ if eq(parameters['ENV'], 'uat') }}:
dockerRegistryServiceConnection: $(UAT_CONTAINER_REGISTRY_SERVICE_CONN)
kubernetesServiceConnection: '$(UAT_KUBERNETES_SERVICE_CONN)'
poolImage: 'pagopa-uat-linux'
${{ if eq(parameters['ENV'], 'prod') }}:
dockerRegistryServiceConnection: $(PROD_CONTAINER_REGISTRY_SERVICE_CONN)
kubernetesServiceConnection: '$(PROD_KUBERNETES_SERVICE_CONN)'
poolImage: 'pagopa-prod-linux'
${{ if eq(variables['Build.SourceBranchName'], 'merge') }}:
SOURCE_BRANCH: "main" # force to main branch
${{ if ne(variables['Build.SourceBranchName'], 'merge') }}:
Expand Down Expand Up @@ -167,6 +170,8 @@ stages:
displayName: 'Deploy_to_${{ parameters.ENV }}'
dependsOn: "Serving_helm"
condition: or(succeeded(), ne('${{ parameters.SEMVER }}', 'skip') )
pool:
name: $(poolImage)
jobs:
- deployment: 'Deploy_to_${{ parameters.ENV }}'
displayName: 'Deploy_to_${{ parameters.ENV }}'
Expand Down
111 changes: 111 additions & 0 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
microservice-chart:
namespace: "gps"
nameOverride: ""
fullnameOverride: ""

image:
repository: pagopaucommonacr.azurecr.io/pagopaspontaneouspayments
tag: "latest" #improve
pullPolicy: Always

livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 8080
initialDelaySeconds: 90
failureThreshold: 6
periodSeconds: 10

readinessProbe:
httpGet:
path: /actuator/health/readiness
port: 8080
initialDelaySeconds: 90
failureThreshold: 6
periodSeconds: 10

deployment:
create: true

service:
create: true
type: ClusterIP
port: 8080

ingress:
create: true
host: "weuuat.gps.internal.uat.platform.pagopa.it"
path: /pagopa-spontaneous-payments-service/(.*)

serviceAccount:
create: false
annotations: {}
name: ""

podAnnotations: {}

podSecurityContext:
seccompProfile:
type: RuntimeDefault

securityContext:
allowPrivilegeEscalation: false

resources:
requests:
memory: "500Mi"
cpu: "350m"
limits:
memory: "500Mi"
cpu: "350m"

autoscaling:
minReplica: 1
maxReplica: 2
pollingInterval: 30 # seconds
cooldownPeriod: 300 # seconds
triggers:
- type: azure-monitor
metadata:
tenantId: 7788edaf-0346-4068-9d79-c868aed15b3d
subscriptionId: 26abc801-0d8f-4a6e-ac5f-8e81bcc09112
resourceGroupName: pagopa-u-gps-sec-rg
resourceURI: Microsoft.KeyVault/vaults/pagopa-u-gps-kv
metricName: ServiceApiHit
# metricNamespace: Microsoft.KeyVault/vaults
# metricFilter: namespace eq 'default'
# metricAggregationInterval: "-1:1:0"
metricAggregationType: Count
targetValue: "30"

envConfig:
COSMOS_URI: https://pagopa-u-weu-gps-cosmos-account.documents.azure.com:443/
COSMOS_DATABASE: "db"
COSMOS_QUERY_METRICS: "false"
EC_CONTAINER_NAME: "creditor_institutions"
SERVICE_CONTAINER_NAME: "services"
GPD_HOST: https://api.uat.platform.pagopa.it/gpd/api/v1
IUV_GENERATOR_HOST: https://api.uat.platform.pagopa.it/shared/iuv-generator-service/v1
AUX_DIGIT: "3"
CONNECTION_TIMEOUT: "1000"
RETRY_GPD_MAX_ATTEMPTS: "1"
RETRY_GPD_MAX_DELAY: "200"
RETRY_IUV_GENERATOR_MAX_ATTEMPTS: "1"
RETRY_IUV_GENERATOR_MAX_DELAY: "200"
RETRY_EXT_SERVICE_MAX_ATTEMPTS: "1"
RETRY_EXT_SERVICE_MAX_DELAY: "200"
LOGGING_LEVEL: "INFO"

envSecret:
COSMOS_KEY: cosmos-gps-weu-u-pkey

keyvault:
name: "pagopa-u-gps-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"

nodeSelector: {}

tolerations: []

affinity: {}