Skip to content

Commit

Permalink
feat: Pnpg-helm-values (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa authored Mar 23, 2023
1 parent b347910 commit 76113e9
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .devops/selfcare-pnpg-deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,6 @@ stages:
deploy:
steps:
- checkout: self
- task: Bash@3
displayName: Get POM version
name: getpomversion
condition: succeeded()
inputs:
targetType: "inline"
script: |
pwd
printenv
ls -la
ls -la $(Pipeline.Workspace)
ls -la $(System.DefaultWorkingDirectory)
failOnStderr: true
- task: Bash@3
name: helm_dependency_build
displayName: Helm dependency build
Expand Down
93 changes: 93 additions & 0 deletions helm/selfcare/pnpg/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
microservice-chart:
namespace: "pnpg"
nameOverride: ""
fullnameOverride: ""

#
# Deploy
#
deployment:
create: true
# forceRedeploy: true

image:
repository: ghcr.io/pagopa/devops-app-status
tag: v1.0.0
pullPolicy: Always

livenessProbe:
httpGet:
path: /status
port: 8000
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10

readinessProbe:
httpGet:
path: /status
port: 8000
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10


#
# Network
#
service:
create: true
type: ClusterIP
ports:
- 8000

ingress:
create: true
host: "prod01.pnpg.internal.selfcare.pagopa.it"
path: /pnpg/status(/|$)(.*)
rewriteTarget: /$2
servicePort: 8000
# proxyBodySize: 2m
annotations: {
nginx.ingress.kubernetes.io/satisfy: "any"
}

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

podAnnotations: {}

podSecurityContext:
seccompProfile:
type: RuntimeDefault

securityContext:
allowPrivilegeEscalation: false

resources:
requests:
memory: "128Mi"
cpu: "40m"
limits:
memory: "128Mi"
cpu: "40m"

autoscaling:
enable: true
minReplica: 1
maxReplica: 3
pollingInterval: 30 # seconds
cooldownPeriod: 300 # seconds
triggers:
- type: cpu
metadata:
type: Utilization
value: "60"

# nodeSelector: {}

# tolerations: []

# affinity: {}
93 changes: 93 additions & 0 deletions helm/selfcare/pnpg/values-uat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
microservice-chart:
namespace: "pnpg"
nameOverride: ""
fullnameOverride: ""

#
# Deploy
#
deployment:
create: true
# forceRedeploy: true

image:
repository: ghcr.io/pagopa/devops-app-status
tag: v1.0.0
pullPolicy: Always

livenessProbe:
httpGet:
path: /status
port: 8000
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10

readinessProbe:
httpGet:
path: /status
port: 8000
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10


#
# Network
#
service:
create: true
type: ClusterIP
ports:
- 8000

ingress:
create: true
host: "uat01.pnpg.internal.uat.selfcare.pagopa.it"
path: /pnpg/status(/|$)(.*)
rewriteTarget: /$2
servicePort: 8000
# proxyBodySize: 2m
annotations: {
nginx.ingress.kubernetes.io/satisfy: "any"
}

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

podAnnotations: {}

podSecurityContext:
seccompProfile:
type: RuntimeDefault

securityContext:
allowPrivilegeEscalation: false

resources:
requests:
memory: "128Mi"
cpu: "40m"
limits:
memory: "128Mi"
cpu: "40m"

autoscaling:
enable: true
minReplica: 1
maxReplica: 3
pollingInterval: 30 # seconds
cooldownPeriod: 300 # seconds
triggers:
- type: cpu
metadata:
type: Utilization
value: "60"

# nodeSelector: {}

# tolerations: []

# affinity: {}

0 comments on commit 76113e9

Please sign in to comment.