# ####-------------------- 标签的是我修改的地方
apiVersion: v1
kind: Service
metadata:
  name: kibana-logging
  namespace: kube-system
  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
    # ####--------------------
    nodePort: 30000
  type: NodePort
  # ####--------------------
  selector:
    k8s-app: kibana-logging