Skip to content

Commit

Permalink
feat: P4ADEV-1892-migrate-p4pa-workflow-hub-to-argoCD (#17)
Browse files Browse the repository at this point in the history
* argo

* argo

* P4ADEV-1892-migrate-p4pa-workflow-hub-to-argoCD

* P4ADEV-1892-migrate-p4pa-workflow-hub-to-argoCD

* P4ADEV-1892-migrate-p4pa-workflow-hub-to-argoCD

* P4ADEV-1892-migrate-p4pa-workflow-hub-to-argoCD

* P4ADEV-1892-migrate-p4pa-workflow-hub-to-argoCD
  • Loading branch information
LarissaASLeite authored Jan 27, 2025
1 parent f44c163 commit e17c764
Show file tree
Hide file tree
Showing 16 changed files with 261 additions and 2 deletions.
1 change: 1 addition & 0 deletions .devops/deploy-argocd-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ parameters:
- p4pa-auth
- p4pa-organization
- p4pa-pagopa-payments
- p4pa-workflow-hub

- name: APPS_MID
displayName: Mid ArgoCD Apps
Expand Down
2 changes: 1 addition & 1 deletion force-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0012
0014
76 changes: 76 additions & 0 deletions helm/_global/p4pa-workflow-hub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
microservice-chart:
namespace: "payhub"
nameOverride: ""
fullnameOverride: ""

livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 8080
initialDelaySeconds: 120
failureThreshold: 15
periodSeconds: 10

readinessProbe:
httpGet:
path: /actuator/health/readiness
port: 8080
initialDelaySeconds: 120
failureThreshold: 15
periodSeconds: 10

deployment:
create: true

service:
create: true
type: ClusterIP
port: 8080

ingress:
create: true
path: /p4paworkflowhub/(.*)

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

podAnnotations: {}

podSecurityContext:
seccompProfile:
type: RuntimeDefault

securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534

externalConfigMapFiles:
create: true
configMaps:
- name: appinsights-config
key: applicationinsights.json

envConfig:
APPLICATIONINSIGHTS_ROLE_NAME: "p4pa-workflow-hub"
APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: "OFF"
APPLICATIONINSIGHTS_INSTRUMENTATION_MICROMETER_ENABLED: "false"
APPLICATIONINSIGHTS_PREVIEW_PROFILER_ENABLED: "false"
ENABLE_AUDIT_APPENDER: "TRUE"


envSecret:
APPLICATIONINSIGHTS_CONNECTION_STRING: appinsights-connection-string
JWT_TOKEN_PUBLIC_KEY: jwt-public-key

MAIL_USERNAME: mail-username
MAIL_PASSWORD: mail-password

# nodeSelector: {}

# tolerations: []

# affinity: {}
10 changes: 10 additions & 0 deletions helm/dev/top/p4pa-workflow-hub/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: p4pa-workflow-hub
description: P4PA Workflow Hub
type: application
version: 1.0.0
appVersion: 1.0.0
dependencies:
- name: microservice-chart
version: 7.3.1
repository: "https://pagopa.github.io/aks-microservice-chart-blueprint"
3 changes: 3 additions & 0 deletions helm/dev/top/p4pa-workflow-hub/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

../../../scripts/deploy.sh values.yaml payhub p4pa-d-itn-dev-aks p4pa-workflow-hub
1 change: 1 addition & 0 deletions helm/dev/top/p4pa-workflow-hub/force-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0001
46 changes: 46 additions & 0 deletions helm/dev/top/p4pa-workflow-hub/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
microservice-chart:
image:
repository: ghcr.io/pagopa/p4pa-workflow-hub
tag: develop-latest
pullPolicy: Always

ingress:
host: "hub.internal.dev.p4pa.pagopa.it"

resources:
requests:
memory: "1Gi"
cpu: "750m"
limits:
memory: "1Gi"
cpu: "750m"

autoscaling:
enable: false

externalConfigMapFiles:
create: true
configMaps:
- name: appinsights-config
key: applicationinsights.json

envConfig:
ENV: "DEV"
JAVA_TOOL_OPTIONS: "-Xms384m -Xmx384m -Djava.util.concurrent.ForkJoinPool.common.parallelism=7 -javaagent:/app/applicationinsights-agent.jar -Dapplicationinsights.configuration.file=/mnt/file-config-external/appinsights-config/applicationinsights.json -agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=n -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3002 -Dcom.sun.management.jmxremote.rmi.port=3003 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

TEMPORAL_SERVER_ENABLE_HTTPS: "true"
TEMPORAL_SERVER_HOST: "api.temporal.internal.dev.p4pa.pagopa.it"
TEMPORAL_SERVER_PORT: "443"

MAIL_HOST: "smtp.ethereal.email"

keyvault:
name: "p4pa-d-payhub-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"

postman-test:
run: true
repoName: p4pa-workflow-hub
dir: postman
collectionName: "p4pa-workflow-hub-E2E.postman_collection.json"
envVariablesFile: "p4pa_DEV.postman_environment.json" #inside azdo secure files
2 changes: 1 addition & 1 deletion helm/prod/top/p4pa-pagopa-payments/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ microservice-chart:

envConfig:
ENV: "PROD"
JAVA_TOOL_OPTIONS: "-Xms384m -Xmx384m -Djava.util.concurrent.ForkJoinPool.common.parallelism=7 -javaagent:/app/applicationinsights-agent.jar -Dapplicationinsights.configuration.file=/mnt/file-config-external/appinsights-config/applicationinsights.json -agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=n -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3002 -Dcom.sun.management.jmxremote.rmi.port=3003 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
JAVA_TOOL_OPTIONS: "-Xms896m -Xmx896m -Djava.util.concurrent.ForkJoinPool.common.parallelism=7 -javaagent:/app/applicationinsights-agent.jar -Dapplicationinsights.configuration.file=/mnt/file-config-external/appinsights-config/applicationinsights.json -agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=n -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3002 -Dcom.sun.management.jmxremote.rmi.port=3003 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

PAGOPA_PAYMENTS_WSDL_BASE_URL: "https://hub.internal.p4pa.pagopa.it/p4papagopapayments"
PAGOPA_NODE_ACA_BASE_URL: "https://api.platform.pagopa.it"
Expand Down
10 changes: 10 additions & 0 deletions helm/prod/top/p4pa-workflow-hub/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: p4pa-workflow-hub
description: P4PA Workflow Hub
type: application
version: 1.0.0
appVersion: 1.0.0
dependencies:
- name: microservice-chart
version: 7.3.1
repository: "https://pagopa.github.io/aks-microservice-chart-blueprint"
3 changes: 3 additions & 0 deletions helm/prod/top/p4pa-workflow-hub/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

../../../scripts/deploy.sh values.yaml payhub p4pa-p-itn-prod-aks p4pa-workflow-hub
1 change: 1 addition & 0 deletions helm/prod/top/p4pa-workflow-hub/force-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0001
48 changes: 48 additions & 0 deletions helm/prod/top/p4pa-workflow-hub/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
microservice-chart:
image:
repository: ghcr.io/pagopa/p4pa-workflow-hub
tag: v1.0.0
pullPolicy: Always

ingress:
host: "hub.internal.p4pa.pagopa.it"

resources:
requests:
memory: "1Gi"
cpu: "750m"
limits:
memory: "1Gi"
cpu: "750m"

autoscaling:
enable: false

externalConfigMapFiles:
create: true
configMaps:
- name: appinsights-config
key: applicationinsights.json

envConfig:
ENV: "PROD"
JAVA_TOOL_OPTIONS: "-Xms896m -Xmx896m -Djava.util.concurrent.ForkJoinPool.common.parallelism=7 -javaagent:/app/applicationinsights-agent.jar -Dapplicationinsights.configuration.file=/mnt/file-config-external/appinsights-config/applicationinsights.json -agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=n -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3002 -Dcom.sun.management.jmxremote.rmi.port=3003 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

JWT_TOKEN_AUDIENCE: "piattaformaunitaria.pagopa.it"
JWT_EXTERNAL_TOKEN_ISS: "https://selfcare.pagopa.it"
JWT_EXTERNAL_TOKEN_BASE_URL: "https://selfcare.pagopa.it"
# nodeSelector: {}

# tolerations: []

# affinity: {}
keyvault:
name: "p4pa-p-payhub-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"

postman-test:
run: true
repoName: p4pa-workflow-hub
dir: postman
collectionName: "p4pa-workflow-hub-E2E.postman_collection.json"
envVariablesFile: "p4pa_PROD.postman_environment.json" #inside azdo secure files
10 changes: 10 additions & 0 deletions helm/uat/top/p4pa-workflow-hub/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: p4pa-workflow-hub
description: P4PA Workflow Hub
type: application
version: 1.0.0
appVersion: 1.0.0
dependencies:
- name: microservice-chart
version: 7.3.1
repository: "https://pagopa.github.io/aks-microservice-chart-blueprint"
3 changes: 3 additions & 0 deletions helm/uat/top/p4pa-workflow-hub/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

../../../scripts/deploy.sh values.yaml payhub p4pa-u-itn-uat-aks p4pa-workflow-hub
1 change: 1 addition & 0 deletions helm/uat/top/p4pa-workflow-hub/force-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0001
46 changes: 46 additions & 0 deletions helm/uat/top/p4pa-workflow-hub/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
microservice-chart:
image:
repository: ghcr.io/pagopa/p4pa-workflow-hub
tag: uat-latest
pullPolicy: Always

ingress:
host: "hub.internal.uat.p4pa.pagopa.it"

resources:
requests:
memory: "1Gi"
cpu: "750m"
limits:
memory: "1Gi"
cpu: "750m"

autoscaling:
enable: false

externalConfigMapFiles:
create: true
configMaps:
- name: appinsights-config
key: applicationinsights.json

envConfig:
ENV: "UAT"
JAVA_TOOL_OPTIONS: "-Xms384m -Xmx384m -Djava.util.concurrent.ForkJoinPool.common.parallelism=7 -javaagent:/app/applicationinsights-agent.jar -Dapplicationinsights.configuration.file=/mnt/file-config-external/appinsights-config/applicationinsights.json -agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=n -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3002 -Dcom.sun.management.jmxremote.rmi.port=3003 -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

TEMPORAL_SERVER_ENABLE_HTTPS: "true"
TEMPORAL_SERVER_HOST: "api.temporal.internal.uat.p4pa.pagopa.it"
TEMPORAL_SERVER_PORT: "443"

MAIL_HOST: "smtp.ethereal.email"

keyvault:
name: "p4pa-u-payhub-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"

postman-test:
run: true
repoName: p4pa-workflow-hub
dir: postman
collectionName: "p4pa-workflow-hub-E2E.postman_collection.json"
envVariablesFile: "p4pa_UAT.postman_environment.json" #inside azdo secure files

0 comments on commit e17c764

Please sign in to comment.