kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml -n monitoring ,把这条语句转换为yaml格式
时间: 2023-03-07 13:37:13 浏览: 222
K8S集群ssl证书监控ssl-exporter资源清单及镜像文件
5星 · 资源好评率100%
apiVersion: v1
kind: Secret
metadata:
name: additional-scrape-configs
namespace: monitoring
type: Opaque
data:
prometheus-additional.yaml: <base64-encoded-file>
阅读全文