29 lines
497 B
Markdown
29 lines
497 B
Markdown
### 通过kube-prometheus安装
|
|
|
|
#### 1. 克隆github 仓库
|
|
|
|
- https://github.com/prometheus-operator/kube-prometheus
|
|
|
|
```bash
|
|
git clone https://github.com/prometheus-operator/kube-prometheus
|
|
```
|
|
|
|
#### 2. 切换版本
|
|
|
|
- 不同版本兼容的k8s版本不一样
|
|
|
|
```bash
|
|
git checkout release-0.11
|
|
```
|
|
|
|
#### 3. 创建资源
|
|
|
|
```bash
|
|
kubectl create -f manifests/setup/
|
|
kubectl wait --for condition=Established --all CustomResourceDefinition --namespace=monitoring
|
|
kubectl apply -f manifests/
|
|
```
|
|
|
|
|
|
|