一、部署Kibana
### --- 创建Kibana-service.yaml文件
[root@k8s-master01 EFK]# cat kibana-service.yaml
apiVersion: v1
kind: Service
metadata:
name: kibana-logging
namespace: public-service
labels:
k8s-app: kibana-logging
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/name: "Kibana"
spec:
ports:
- port: 5601
protocol: TCP
targetPort: ui
selector:
k8s-app: kibana-logging
type: NodePort
二、创建Kibana-service
### --- 创建Kibana-service
[root@k8s-master01 EFK]# kubectl create -f kibana-service.yaml
service/kibana-logging created
### --- 查看创建的kibana-service
[root@k8s-master01 EFK]# kubectl get svc -n public-service -owide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
elasticsearch-logging ClusterIP 10.107.157.176 <none>