https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-kibana-connect-to-es.html

secret

kubectl -n test create secret generic kibana-elasticsearch-credentials --from-literal=elasticsearch.password=123456

Kibana

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana-test
  namespace: test
spec:
  version: 6.8.0
  count: 1
  config:
    elasticsearch.hosts:
      - http://elasticsearch-es-http:9200
    elasticsearch.username: elastic
  secureSettings:
    - secretName: kibana-elasticsearch-credentials
  http:
    tls:
      selfSignedCertificate:
        disabled: true

ingress

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: log-test-cn-kibana
  namespace: test
  annotations:
    kubernetes.io/ingress.class: "nginx"
spec:
  rules:
  - host: log.test.cn
    http:
      paths:
      - path:
        backend:
          serviceName: kibana-test-kb-http
          servicePort: 5601

登录:

用户名 elastic
密码 123456

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code