将 sidecar 部署到 prometheus
Deploying sidecar to prometheus
我已经尝试使用 Thanos
部署 Prometheus Operator
但我无法成功将 Thanos
sidecar 部署到 Prometheus pod
你能帮我看看我要去哪里吗sidecar
.
部署错误
我已经在我的集群中成功部署了 Prometheus operator
,然后我按照以下命令创建了密钥
$ kubectl -n monitoring create secret generic thanos-objstore-config --from file=thanos.yaml=/tmp/thanos-config.yaml
然后我通过以下命令验证了 Thanos
sidecar
$ kubectl describe po/prometheus-prom-op-prometheus-0 -n monitoring
其中 prom-op 是我创建的 Prometheus 运算符的名称。
但是我看不到普罗米修斯 pod 中部署的 thanos sidecar。谁能帮我解决我做错的问题。
可以在crd中手动添加。
kubectl -n monitoring edit Prometheus prometheus-operator-prometheus
然后添加
thanos:
image: improbable/thanos:v0.6.0
objectStorageConfig:
key: object-store.yaml
name: thanos
version: v0.6.0
我已经尝试使用 Thanos
部署 Prometheus Operator
但我无法成功将 Thanos
sidecar 部署到 Prometheus pod
你能帮我看看我要去哪里吗sidecar
.
我已经在我的集群中成功部署了 Prometheus operator
,然后我按照以下命令创建了密钥
$ kubectl -n monitoring create secret generic thanos-objstore-config --from file=thanos.yaml=/tmp/thanos-config.yaml
然后我通过以下命令验证了 Thanos
sidecar
$ kubectl describe po/prometheus-prom-op-prometheus-0 -n monitoring
其中 prom-op 是我创建的 Prometheus 运算符的名称。
但是我看不到普罗米修斯 pod 中部署的 thanos sidecar。谁能帮我解决我做错的问题。
可以在crd中手动添加。
kubectl -n monitoring edit Prometheus prometheus-operator-prometheus
然后添加
thanos:
image: improbable/thanos:v0.6.0
objectStorageConfig:
key: object-store.yaml
name: thanos
version: v0.6.0