Skip to content
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
2 changes: 1 addition & 1 deletion helm/auditmanager/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
charts/
Charts.lock
Chart.lock
1 change: 1 addition & 0 deletions helm/auditmanager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spec:
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds | default 60 }}
{{- if .Values.affinity }}
affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.affinity "context" $) | nindent 8 }}
{{- else }}
Expand Down
27 changes: 18 additions & 9 deletions helm/auditmanager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ readinessProbe:
httpGet:
path: /v1/auditmanager/actuator/health
port: 8081
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 5
initialDelaySeconds: 30
periodSeconds: 15
timeoutSeconds: 10
failureThreshold: 6
successThreshold: 1

Expand All @@ -126,16 +126,16 @@ resources:
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 1000m
memory: 2500Mi
cpu: 2000m
memory: 8000Mi
requests:
cpu: 100m
memory: 1500Mi

additionalResources:
## Specify any JAVA_OPTS string here. These typically will be specified in conjunction with above resources
## Example: java_opts: "-Xms500M -Xmx500M"
javaOpts: "-Xms1750M -Xmx1750M"
javaOpts: "-Xms3050M -Xmx3050M"

## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
## Clamav container already runs as 'mosip' user, so we may not need to enable this
Expand Down Expand Up @@ -216,7 +216,16 @@ podAnnotations: {}

## lifecycleHooks for the container to automate configuration before or after startup.
##
lifecycleHooks: {}
lifecycleHooks:
preStop:
exec:
command:
- sh
- -c
- sleep 30

## Termination grace perios : the maximum amount of time (in seconds) Kubernetes will wait for a container to gracefully shut down
terminationGracePeriodSeconds: 60

## Custom Liveness probes for
##
Expand Down Expand Up @@ -345,8 +354,8 @@ volumePermissions:
enabled: false
image:
registry: docker.io
repository: bitnami/bitnami-shell
tag: "10"
repository: mosipid/os-shell
tag: "12-debian-12-r46"
pullPolicy: Always
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
Expand Down
1 change: 1 addition & 0 deletions kernel/kernel-auditmanager-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.2.3</version>
<configuration>
<executable>true</executable>
<layout>ZIP</layout>
Expand Down