optimize kibana

main
ycz008 2024-03-08 10:37:33 +08:00
parent da8181fc39
commit 2980dfc7be
1 changed files with 16 additions and 3 deletions

View File

@ -7,6 +7,9 @@ data:
server.name: kibana server.name: kibana
server.host: 0.0.0.0 server.host: 0.0.0.0
elasticsearch.hosts: [ "http://elastic:9200" ] elasticsearch.hosts: [ "http://elastic:9200" ]
node.options: |-
--max-old-space-size=4096
--unhandled-rejections=warn
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
@ -33,15 +36,19 @@ spec:
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 512Mi
limits: limits:
cpu: 1 cpu: 2
memory: 1Gi memory: 4Gi
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /usr/share/kibana/config/kibana.yml mountPath: /usr/share/kibana/config/kibana.yml
subPath: kibana.yml subPath: kibana.yml
readOnly: true readOnly: true
- name: node-options
mountPath: /usr/share/kibana/config/node.options
subPath: node.options
readOnly: true
volumes: volumes:
- name: config - name: config
configMap: configMap:
@ -49,6 +56,12 @@ spec:
items: items:
- key: kibana.yml - key: kibana.yml
path: kibana.yml path: kibana.yml
- name: node-options
configMap:
name: kibana-config
items:
- key: node.options
path: node.options
--- ---
apiVersion: v1 apiVersion: v1