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: Helm #22

Merged
merged 1 commit into from
Dec 6, 2023
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
6 changes: 0 additions & 6 deletions helm/Chart.lock

This file was deleted.

2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version: 1.27.0
appVersion: 1.3.7
dependencies:
- name: microservice-chart
version: 2.4.0
version: 2.8.0
repository: "https://pagopa.github.io/aks-microservice-chart-blueprint"
19 changes: 14 additions & 5 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ microservice-chart:
namespace: "apiconfig"
nameOverride: ""
fullnameOverride: ""
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: 1.3.7
tag: "1.3.7"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -32,6 +37,7 @@ microservice-chart:
- 80 #http
- 12345 #jmx-exporter
service:
create: true
type: ClusterIP
ports:
- 8080
Expand All @@ -42,6 +48,8 @@ microservice-chart:
servicePort: 8080
serviceAccount:
create: false
annotations: {}
name: ""
podAnnotations: {}
podSecurityContext:
seccompProfile:
Expand All @@ -55,14 +63,14 @@ microservice-chart:
resources:
requests:
memory: "512Mi"
cpu: "0.40"
cpu: "0.4"
limits:
memory: "512Mi"
cpu: "0.5"
autoscaling:
enable: true
minReplica: 1
maxReplica: 2
maxReplica: 1
pollingInterval: 30 # seconds
cooldownPeriod: 60 # seconds
triggers:
Expand All @@ -73,6 +81,7 @@ microservice-chart:
value: "75"
envConfig:
WEBSITE_SITE_NAME: 'pagopaapiconfigselfcareintegration' # required to show cloud role name in application insights
APPLICATIONINSIGHTS_ROLE_NAME: "pagopa-api-config-selfcare-integration"
ENV: 'azure-dev'
APP_LOGGING_LEVEL: 'DEBUG'
DEFAULT_LOGGING_LEVEL: 'INFO'
Expand Down Expand Up @@ -125,5 +134,5 @@ microservice-chart:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: 1.3.6-3-chart
pullPolicy: Always
envConfig:
envSecret:
envConfig: {}
envSecret: {}
20 changes: 13 additions & 7 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ microservice-chart:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.3.6"
pullPolicy: Always
envConfig: {}
envSecret: {}
maxSurge: 1
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.3.7"
Expand Down Expand Up @@ -103,6 +97,9 @@ microservice-chart:
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.elastic-system.svc:4317"
OTEL_LOGS_EXPORTER: none
OTEL_TRACES_SAMPLER: "always_on"
envFieldRef:
APP_NAME: "metadata.labels['app.kubernetes.io/instance']"
APP_VERSION: "metadata.labels['app.kubernetes.io/version']"
envSecret:
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-p-connection-string'
SPRING_DATASOURCE_PASSWORD: 'oracle-db-cfg-password'
Expand All @@ -121,6 +118,15 @@ microservice-chart:
operator: In
values:
- user
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: apiconfig-selfcare-integration
namespaces: [ "apiconfig" ]
topologyKey: topology.kubernetes.io/zone
canaryDelivery:
create: false
ingress:
Expand Down
13 changes: 5 additions & 8 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ microservice-chart:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.3.6"
pullPolicy: Always
envConfig: {}
envSecret: {}
maxSurge: 1
image:
repository: ghcr.io/pagopa/pagopa-api-config-selfcare-integration
tag: "1.3.7"
Expand Down Expand Up @@ -76,7 +70,7 @@ microservice-chart:
autoscaling:
enable: true
minReplica: 1
maxReplica: 10
maxReplica: 1
pollingInterval: 10 # seconds
cooldownPeriod: 50 # seconds
triggers:
Expand All @@ -103,6 +97,9 @@ microservice-chart:
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.elastic-system.svc:4317"
OTEL_LOGS_EXPORTER: none
OTEL_TRACES_SAMPLER: "always_on"
envFieldRef:
APP_NAME: "metadata.labels['app.kubernetes.io/instance']"
APP_VERSION: "metadata.labels['app.kubernetes.io/version']"
envSecret:
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-u-connection-string'
SPRING_DATASOURCE_PASSWORD: 'oracle-db-cfg-password'
Expand Down
Loading