|
@@ -78,6 +78,20 @@ data:
|
|
|
}
|
|
|
logstash_yml: |
|
|
|
http.host: "0.0.0.0"
|
|
|
+ jvm-options: |
|
|
|
+ -Xms4g
|
|
|
+ -Xmx4g
|
|
|
+ -XX:+UseConcMarkSweepGC
|
|
|
+ -XX:CMSInitiatingOccupancyFraction=75
|
|
|
+ -XX:+UseCMSInitiatingOccupancyOnly
|
|
|
+ -Djava.awt.headless=true
|
|
|
+ -Dfile.encoding=UTF-8
|
|
|
+ -Djruby.compile.invokedynamic=true
|
|
|
+ -Djruby.jit.threshold=0
|
|
|
+ -Djruby.regexp.interruptible=true
|
|
|
+ -XX:+HeapDumpOnOutOfMemoryError
|
|
|
+ -Djava.security.egd=file:/dev/urandom
|
|
|
+ -Dlog4j2.isThreadContextMapInheritable=true
|
|
|
---
|
|
|
kind: Deployment
|
|
|
apiVersion: apps/v1
|
|
@@ -107,15 +121,23 @@ spec:
|
|
|
- containerPort: 9600
|
|
|
name: api
|
|
|
volumeMounts:
|
|
|
- - name: vm-config
|
|
|
+ - name: logstash-config
|
|
|
mountPath: /usr/share/logstash/config
|
|
|
+ - name: jvm-options
|
|
|
+ mountPath: /usr/share/logstash/jvm.options
|
|
|
volumes:
|
|
|
- - name: vm-config
|
|
|
+ - name: logstash-config
|
|
|
configMap:
|
|
|
name: logstash-config
|
|
|
items:
|
|
|
- key: logstash-config-named-k8s
|
|
|
path: logstash.conf
|
|
|
+ - name: jvm-options
|
|
|
+ configMap:
|
|
|
+ name: logstash-config
|
|
|
+ items:
|
|
|
+ - key: jvm-options
|
|
|
+ path: jvm.options
|
|
|
---
|
|
|
kind: Service
|
|
|
apiVersion: v1
|