fix
This commit is contained in:
@@ -57,6 +57,9 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: application.yaml
|
- key: application.yaml
|
||||||
path: application.yaml
|
path: application.yaml
|
||||||
|
- name: heapdumps-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: "{{$.Release.Name}}-{{$.Chart.Name}}-heapdumps"
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $.Values.podSecurityContext | nindent 8 }}
|
{{- toYaml $.Values.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
@@ -68,9 +71,13 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: SPRING_CONFIG_ADDITIONAL_LOCATION
|
- name: SPRING_CONFIG_ADDITIONAL_LOCATION
|
||||||
value: "file:/opt/app/config/application.yaml"
|
value: "file:/opt/app/config/application.yaml"
|
||||||
|
- name: JAVA_TOOL_OPTIONS
|
||||||
|
value: "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/storage/heap_oom.hprof"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: '/opt/app/config'
|
- mountPath: '/opt/app/config'
|
||||||
name: application-properties-volume
|
name: application-properties-volume
|
||||||
|
- name: heapdumps-data
|
||||||
|
mountPath: /storage
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ $.Values.port }}
|
containerPort: {{ $.Values.port }}
|
||||||
|
|||||||
Reference in New Issue
Block a user