bump prometheus-operator version and deploy file

This commit is contained in:
zouyee 2018-12-11 14:02:14 +08:00
parent f19e933323
commit c7ae696767
5 changed files with 16086 additions and 5 deletions

View File

@ -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"
```

View File

@ -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"

View File

@ -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

View File

@ -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