OKR/toc-upgrade/elastic/kibana.yaml

83 lines
1.7 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: kibana-config
data:
kibana.yml: |-
server.name: kibana
server.host: 0.0.0.0
server.publicBaseUrl: http://kibana-tcs.drillinsight.com
elasticsearch.hosts: [ "http://elastic:9200" ]
node.options: |-
--max-old-space-size=4096
--unhandled-rejections=warn
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
labels:
app: kibana
spec:
replicas: 1
selector:
matchLabels:
app: kibana
template:
metadata:
labels:
app: kibana
spec:
nodeSelector:
app.kubernetes.io/name: es
containers:
- name: kibana
image: docker.elastic.co/kibana/kibana:7.16.3
ports:
- containerPort: 5601
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 2
memory: 4Gi
volumeMounts:
- name: config
mountPath: /usr/share/kibana/config/kibana.yml
subPath: kibana.yml
readOnly: true
- name: node-options
mountPath: /usr/share/kibana/config/node.options
subPath: node.options
readOnly: true
volumes:
- name: config
configMap:
name: kibana-config
items:
- key: kibana.yml
path: kibana.yml
- name: node-options
configMap:
name: kibana-config
items:
- key: node.options
path: node.options
---
apiVersion: v1
kind: Service
metadata:
name: kibana
labels:
app: kibana
spec:
ports:
- port: 5601
targetPort: 5601
selector:
app: kibana
type: ClusterIP