谁能解释一下<CERTIFICATE_DATA_REDACTED>是什么意思?

Can anyone explain what is meant by <CERTIFICATE_DATA_REDACTED>?

我正在尝试设置 ElasticSearch OpenDistro,但我无法理解 link

<CERTIFICATE_DATA_REDACTED> 的含义

https://github.com/opendistro-for-elasticsearch/community/blob/master/open-distro-elasticsearch-kubernetes/elasticsearch/35-es-bootstrap-secrets.yml

我该如何使用这个yaml文件?我是否需要将 base64 编码值放在这里替换 kubectl apply -f secrets.yaml 或什么?

有人可以提供任何参考 link 解释相同的内容吗?

kind: Secret
metadata:
  name: elasticsearch-tls-data
  namespace: elasticsearch
type: Opaque
stringData:
  elk-crt.pem: |-
    <CERTIFICATE_DATA_REDACTED>
  elk-key.pem: |-
    <CERTIFICATE_DATA_REDACTED>
  elk-root-ca.pem: |-
    <CERTIFICATE_DATA_REDACTED>
  admin-crt.pem: |-
    <CERTIFICATE_DATA_REDACTED>
  admin-key.pem: |-
    <CERTIFICATE_DATA_REDACTED>
  admin-root-ca.pem: |-
    <CERTIFICATE_DATA_REDACTED> ````

我以前没有使用过这个配置,但我认为你应该做的是创建你自己的证书 elk-crt.pem, elk-key.pem, elk-root-ca.pem, admin-crt.pem, admin-key.pem, admin-root-ca.pem 与 Kibana 一样(如果你会使用它),然后用原始的创建你的秘密值,

请阅读:

For certain scenarios, you may wish to use the stringData field instead. This field allows you to put a non-base64 encoded string directly into the Secret, and the string will be encoded for you when the Secret is created or updated.

https://kubernetes.io/docs/concepts/configuration/secret/