add kibana.yaml
parent
0e665056ed
commit
948b4340de
|
@ -48,7 +48,7 @@ spec:
|
|||
- name: cluster.initial_master_nodes
|
||||
value: "elastic-0,elastic-1,elastic-2"
|
||||
- name: xpack.security.enabled
|
||||
value: "true"
|
||||
value: "false"
|
||||
- name: xpack.monitoring.collection.enabled
|
||||
value: "true"
|
||||
- name: ES_JAVA_OPTS
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: kibana-config
|
||||
data:
|
||||
kibana.yml: |-
|
||||
server.name: kibana
|
||||
server.host: 0.0.0.0
|
||||
elasticsearch.hosts: [ "http://elastic:9200" ]
|
||||
monitoring.ui.container.elasticsearch.enabled: true
|
||||
elasticsearch.username: kibana-admin
|
||||
elasticsearch.password: admin123
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kibana
|
||||
labels:
|
||||
app: kibana
|
||||
spec:
|
||||
ports:
|
||||
- port: 5601
|
||||
targetPort: 5601
|
||||
nodePort: 30019
|
||||
selector:
|
||||
app: kibana
|
||||
type: NodePort
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kibana
|
||||
labels:
|
||||
app: kibana
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: kibana
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: kibana
|
||||
spec:
|
||||
containers:
|
||||
- name: kibana
|
||||
image: docker.elastic.co/kibana/kibana:8.8.0
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /usr/share/kibana/config/kibana.yml
|
||||
subPath: kibana.yml
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 1Gi
|
||||
ports:
|
||||
- containerPort: 5601
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: kibana-config
|
||||
items:
|
||||
- key: kibana.yml
|
||||
path: kibana.yml
|
Loading…
Reference in New Issue