Skip to content

Commit

Permalink
feat: P4PADEV-1888 add p4pa-organization to ArgoCD (#15)
Browse files Browse the repository at this point in the history
P4PADEV-1888 add p4pa-organization to ArgoCD
  • Loading branch information
antocalo authored Jan 23, 2025
1 parent 0dc987e commit f1f0ac7
Show file tree
Hide file tree
Showing 14 changed files with 227 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devops/deploy-argocd-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ parameters:
type: object
default:
- p4pa-auth
- p4pa-organization
- p4pa-pagopa-payments

- name: APPS_MID
Expand Down
76 changes: 76 additions & 0 deletions helm/_global/p4pa-organization.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: /p4paorganization/(.*)

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-organization"
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
ORGANIZATION_DB_HOST: db-host
ORGANIZATION_DB_USER: db-piattaforma-unitaria-login-username
ORGANIZATION_DB_PASSWORD: db-piattaforma-unitaria-login-password
BROKER_ENCRYPT_PASSWORD: broker-encrypt-password
JWT_TOKEN_PUBLIC_KEY: jwt-public-key

# nodeSelector: {}

# tolerations: []

# affinity: {}
10 changes: 10 additions & 0 deletions helm/dev/top/p4pa-organitazion/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: p4pa-organization
description: P4PA ORGANIZATION
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-organitazion/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-organization
1 change: 1 addition & 0 deletions helm/dev/top/p4pa-organitazion/force-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1658
36 changes: 36 additions & 0 deletions helm/dev/top/p4pa-organitazion/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
microservice-chart:
image:
repository: ghcr.io/pagopa/p4pa-organization
tag: develop-latest
pullPolicy: Always

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

resources:
requests:
memory: "512Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "300m"

autoscaling:
enable: false
# minReplica: 1
# maxReplica: 1
# pollingInterval: 30 # seconds
# cooldownPeriod: 300 # seconds
# triggers:
# - type: cpu
# metadata:
# type: Utilization # Allowed types are 'Utilization' or 'AverageValue'
# value: "70"

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"

keyvault:
name: "p4pa-d-payhub-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"
10 changes: 10 additions & 0 deletions helm/prod/top/p4pa-organitazion/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: p4pa-organization
description: P4PA ORGANIZATION
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-organitazion/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-dev-aks p4pa-organization
1 change: 1 addition & 0 deletions helm/prod/top/p4pa-organitazion/force-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1658
36 changes: 36 additions & 0 deletions helm/prod/top/p4pa-organitazion/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
microservice-chart:
image:
repository: ghcr.io/pagopa/p4pa-organization
tag: v1.0.0
pullPolicy: Always

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

resources:
requests:
memory: "512Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "300m"

autoscaling:
enable: false
# minReplica: 1
# maxReplica: 1
# pollingInterval: 30 # seconds
# cooldownPeriod: 300 # seconds
# triggers:
# - type: cpu
# metadata:
# type: Utilization # Allowed types are 'Utilization' or 'AverageValue'
# value: "70"

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"

keyvault:
name: "p4pa-p-payhub-kv"
tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"
10 changes: 10 additions & 0 deletions helm/uat/top/p4pa-organitazion/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: p4pa-organization
description: P4PA ORGANIZATION
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-organitazion/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-dev-aks p4pa-organization
1 change: 1 addition & 0 deletions helm/uat/top/p4pa-organitazion/force-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1658
36 changes: 36 additions & 0 deletions helm/uat/top/p4pa-organitazion/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
microservice-chart:
image:
repository: ghcr.io/pagopa/p4pa-organization
tag: uat-latest
pullPolicy: Always

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

resources:
requests:
memory: "512Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "300m"

autoscaling:
enable: false
# minReplica: 1
# maxReplica: 1
# pollingInterval: 30 # seconds
# cooldownPeriod: 300 # seconds
# triggers:
# - type: cpu
# metadata:
# type: Utilization # Allowed types are 'Utilization' or 'AverageValue'
# value: "70"

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"

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

0 comments on commit f1f0ac7

Please sign in to comment.