Install Prometheus Operator
git clone https://github.com/coreos/prometheus-operator.git
kubectl create namespace monitoring
# update bundle.yaml文件中所有namespace from default -> monitoring
kubectl -n monitoring apply -f bundle.yaml
If failed(too long byte), using kubectl -n monitoring replace -f bundle.yaml
Install cert-manager
helm repo add jetstack https://charts.jetstack.io
helm repo update
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.1/cert-manager.crds.yaml
helm upgrade --install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.13.1 \
--set prometheus.enabled=true \
--set prometheus.servicemonitor.enabled=true \
--set webhook.timeoutSeconds=4
参考:
https://cert-manager.io/docs/installation/helm/
https://yunlzheng.gitbook.io/prometheus-book/part-iii-prometh...
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。