如何在 kubernetes 中获取 Kibana (ECK) APM 操作员的密码?

How to get password for Kibana (ECK) APM operator in kubernetes?

我遵循了本指南 https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html,然后应用此清单:

---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: elasticsearch
spec:
  version: 7.5.1
  nodeSets:
  - name: default
    count: 3
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
spec:
  version: 7.5.1
  count: 1
  elasticsearchRef:
    name: elasticsearch
---
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
  name: apm-server
spec:
  version: 7.5.1
  count: 1
  elasticsearchRef:
    name: "elasticsearch"
  config:
    apm-server:
      rum.enabled: true
      ilm.enabled: true
      rum.event_rate.limit: 300
      rum.event_rate.lru_size: 1000
      rum.allow_origins: ['']
      rum.library_pattern: "node_modules|bower_components|~"
      rum.exclude_from_grouping: "^/webpack"
      rum.source_mapping.enabled: true
      rum.source_mapping.cache.expiration: 5m
      rum.source_mapping.index_pattern: "apm--sourcemap*"
  http:
    service:
      spec:
        type: LoadBalancer
    tls:
      selfSignedCertificate:
        disabled: true

然后使用端口转发 kubectl port-forward pod/kibana-kb-5bb5bf69c9-5m5r5 5601 我正在尝试登录到 kibana,但我找不到用于弹性搜索或 kibana 的任何密码,并查看 APM 是否正常工作...那么,我如何获得访问密码?这是什么秘密?

kubectl get secret elasticsearch-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode; echo

所描述的 here 不适合您?那个秘密存在吗?