optimizition tcs es and kibana

main
ycz008 2024-03-14 14:29:15 +08:00
parent 3ddc9e2ef2
commit 4a4ff0751f
2 changed files with 20 additions and 8 deletions

View File

@ -133,16 +133,16 @@ spec:
- name: xpack.monitoring.collection.enabled - name: xpack.monitoring.collection.enabled
value: "false" value: "false"
- name: ES_JAVA_OPTS - name: ES_JAVA_OPTS
value: "-Xms256m -Xmx256m" value: "-Xms4096m -Xmx4096m"
- name: ELASTIC_PASSWORD - name: ELASTIC_PASSWORD
value: "changeme" value: "changeme"
resources: resources:
limits: limits:
cpu: 2 cpu: 2
memory: 4Gi memory: 8Gi
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 512Mi
volumeMounts: volumeMounts:
- name: elastic-tcs - name: elastic-tcs
mountPath: /usr/share/elasticsearch/data mountPath: /usr/share/elasticsearch/data
@ -168,8 +168,7 @@ spec:
- name: restful - name: restful
port: 9200 port: 9200
targetPort: 9200 targetPort: 9200
# nodePort: 30029 type: ClusterIP
type: NodePort
selector: selector:
app: elastic app: elastic

View File

@ -8,6 +8,9 @@ data:
server.host: 0.0.0.0 server.host: 0.0.0.0
server.publicBaseUrl: http://kibana-tcs.beaconfireinc.com server.publicBaseUrl: http://kibana-tcs.beaconfireinc.com
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
@ -34,15 +37,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:
@ -50,6 +57,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