-
Notifications
You must be signed in to change notification settings - Fork 8
/
openlibertyapplication.yaml
54 lines (54 loc) · 1.28 KB
/
openlibertyapplication.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: apps.openliberty.io/v1beta2
kind: OpenLibertyApplication
metadata:
name: javaee-cafe-elk-hosted-elasticsearch
namespace: open-liberty-demo
spec:
replicas: 1
applicationImage: javaee-cafe-simple:1.0.0
expose: true
serviceAccountName: filebeat-svc-account
env:
- name: WLP_LOGGING_MESSAGE_FORMAT
value: JSON
- name: WLP_LOGGING_MESSAGE_SOURCE
value: message,trace,accessLog,ffdc,audit
volumeMounts:
- name: logs-volume
mountPath: /logs
volumes:
- name: logs-volume
emptyDir: {}
- name: config
configMap:
defaultMode: 0600
name: filebeat-config
sidecarContainers:
- name: filebeat
image: docker.elastic.co/beats/filebeat:7.6.2
args: [
"-c", "/etc/filebeat.yml",
"-e",
]
securityContext:
runAsUser: 0
privileged: true
env:
- name: ELASTIC_CLOUD_ID
valueFrom:
secretKeyRef:
name: elastic-cloud-secret
key: elastic.cloud.id
- name: ELASTIC_CLOUD_AUTH
valueFrom:
secretKeyRef:
name: elastic-cloud-secret
key: elastic.cloud.auth
volumeMounts:
- name: config
mountPath: /etc/filebeat.yml
readOnly: true
subPath: filebeat.yml
- name: logs-volume
mountPath: /logs
readOnly: true