1、下载与安装elasticsearch7.11.2相同版本的kibana
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.11.2-linux-x86_64.tar.gz
2、解压文件
$ tar -zxvf kibana-7.11.2-linux-x86_64.tar.gz
3、修改配置文件
$ vi config/kibana.yml
4、启动kibana
$ ./bin/kibana --allow-root &
1、yaml安装部署文件(使用deployment\service\ingress)
apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
namespace: elk
labels:
app: kibana
spec:
selector:
matchLabels:
app: "kibana"
template:
metadata:
labels:
app: kibana
spec:
containers:
- name: kibana
image: docker.elastic.co/kibana/kibana:7.11.2
resources:
limits:
cpu: 1000m
requests:
cpu: 100m
env:
- name: ELASTICSEARCH_URL
value: "http://10.3.153.200:9200","http://10.3.153.201:9200","http://10.3.153.202:9200"
#此处的value赋值无法成功,当前解决方法为使用docker运行镜像,进去镜像修改配置,然后把该镜像重新打包再次上传到仓库
ports:
- containerPort: 5601
---
apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: elk
labels:
app: kibana
spec:
ports:
- port: 5601
protocol: TCP
targetPort: 5601
type: ClusterIP
selector:
app: kibana
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kibana
namespace: elk
spec:
rules:
- host: kibana.cedarhd.com
http:
paths:
- path: /
backend:
serviceName: kibana
servicePort: 5601
原文:https://blog.51cto.com/12965094/2671834