mirror of https://github.com/kubernetes/kops.git
bump prometheus-operator version and deploy file
This commit is contained in:
parent
f19e933323
commit
c7ae696767
|
@ -2,17 +2,26 @@
|
|||
|
||||
[Prometheus Operator](https://coreos.com/operators/prometheus) creates/configures/manages Prometheus clusters atop Kubernetes. This addon deploy prometheus-operator and [kube-prometheus](https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/README.md) in a kops cluster.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
Version `>=0.18.0` of the Prometheus Operator requires a Kubernetes
|
||||
cluster of version `>=1.8.0`. If you are just starting out with the
|
||||
Prometheus Operator, it is highly recommended to use the latest version.
|
||||
|
||||
If you have an older version of Kubernetes and the Prometheus Operator running,
|
||||
we recommend upgrading Kubernetes first and then the Prometheus Operator.
|
||||
|
||||
## Usage
|
||||
|
||||
### Deploy To Cluster
|
||||
|
||||
```console
|
||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/prometheus-operator/v0.19.0.yaml
|
||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/prometheus-operator/v0.26.0.yaml
|
||||
```
|
||||
### Updating the addon
|
||||
|
||||
Run the script below.
|
||||
|
||||
```console
|
||||
addons/prometheus-operator/sync-repo.sh "v0.19.0"
|
||||
addons/prometheus-operator/sync-repo.sh "v0.26.0"
|
||||
```
|
||||
|
|
|
@ -7,3 +7,9 @@ spec:
|
|||
selector:
|
||||
k8s-addon: prometheus-operator.addons.k8s.io
|
||||
manifest: v0.19.0.yaml
|
||||
kubernetesVersion: ">=1.8.0"
|
||||
- version: 0.26.0
|
||||
selector:
|
||||
k8s-addon: prometheus-operator.addons.k8s.io
|
||||
manifest: v0.26.0.yaml
|
||||
kubernetesVersion: ">=1.8.0"
|
|
@ -18,10 +18,10 @@ set -o errexit
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
P_OPERATOR_VERSION=${1:-"v0.19.0"}
|
||||
P_OPERATOR_VERSION=${1:-"v0.26.0"}
|
||||
P_OPERATOR_ADDON_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd ${P_OPERATOR_ADDON_DIR}
|
||||
git clone --depth 1 https://github.com/coreos/prometheus-operator/
|
||||
git clone -b ${P_OPERATOR_VERSION} --depth 1 https://github.com/coreos/prometheus-operator
|
||||
cp prometheus-operator/bundle.yaml ${P_OPERATOR_VERSION}.yaml
|
||||
mkdir tmp
|
||||
cp prometheus-operator/contrib/kube-prometheus/manifests/* tmp
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -135,7 +135,7 @@ The [Prometheus Operator](https://github.com/coreos/prometheus-operator/) makes
|
|||
[kube-prometheus](https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus) combines the Prometheus Operator with a collection of manifests to help getting started with monitoring Kubernetes itself and applications running on top of it.
|
||||
|
||||
```console
|
||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/prometheus-operator/v0.19.0.yaml
|
||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/prometheus-operator/v0.26.0.yaml
|
||||
```
|
||||
|
||||
### Route53 Mapper
|
||||
|
|
Loading…
Reference in New Issue