OKR/dev-upgrade/elastic/kibana.yaml

65 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-26 22:09:44 +08:00
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" ]
---
apiVersion: v1
kind: Service
metadata:
name: kibana
labels:
app: kibana
spec:
ports:
- port: 5601
targetPort: 5601
2023-09-22 15:48:39 +08:00
nodePort: 30013
2023-07-26 22:09:44 +08:00
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
2023-09-22 15:32:55 +08:00
image: docker.elastic.co/kibana/kibana:7.16.3
2023-07-26 22:09:44 +08:00
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
2023-09-22 15:32:55 +08:00
path: kibana.yml