Skip to content

Commit

Permalink
bump image version and README
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyee committed Jan 8, 2018
1 parent add03cd commit a7246a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ release.
#### Container Image

The latest container image can be found at:
* `quay.io/coreos/kube-state-metrics:v1.1.0`
* `k8s.gcr.io/kube-state-metrics:v1.1.0`
* `quay.io/coreos/kube-state-metrics:v1.2.0-rc.0`
* `k8s.gcr.io/kube-state-metrics:v1.2.0-rc.0`

**Note**:
The recommended docker registry for kube-state-metrics is `quay.io`. kube-state-metrics on
Expand Down
1 change: 1 addition & 0 deletions kubernetes/kube-state-metrics-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apiVersion: apps/v1beta2
# Kubernetes versions after 1.9.0 should use apps/v1
kind: Deployment
metadata:
name: kube-state-metrics
Expand Down
6 changes: 3 additions & 3 deletions scripts/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ KUBERNETES_VERSION=v1.8.0
KUBE_STATE_METRICS_LOG_DIR=./log
KUBE_STATE_METRICS_IMAGE_NAME='quay.io/coreos/kube-state-metrics'
KUBE_STATE_METRICS_IMAGE_NAME_PATTERN='quay.io\/coreos\/kube-state-metrics'
PROMETHEUS_VERSION=1.8.1
PROMETHEUS_VERSION=2.0.0

mkdir -p $KUBE_STATE_METRICS_LOG_DIR

Expand All @@ -40,7 +40,7 @@ mkdir $HOME/.kube || true
touch $HOME/.kube/config

export KUBECONFIG=$HOME/.kube/config
sudo minikube start --vm-driver=none --kubernetes-version=$KUBERNETES_VERSION
sudo minikube start --vm-driver=none --kubernetes-version=$KUBERNETES_VERSION --logtostderr

minikube update-context

Expand Down Expand Up @@ -129,7 +129,7 @@ curl -s "http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kube
echo "check metrics format with promtool"
wget -q -O /tmp/prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v$PROMETHEUS_VERSION/prometheus-$PROMETHEUS_VERSION.linux-amd64.tar.gz
tar zxfv /tmp/prometheus.tar.gz -C /tmp
cat $KUBE_STATE_METRICS_LOG_DIR/metrics | /tmp/prometheus-$PROMETHEUS_VERSION.linux-amd64/promtool check-metrics
cat $KUBE_STATE_METRICS_LOG_DIR/metrics | /tmp/prometheus-$PROMETHEUS_VERSION.linux-amd64/promtool check metrics

KUBE_STATE_METRICS_STATUS=$(curl -s "http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kube-state-metrics:8080/healthz")
if [ "$KUBE_STATE_METRICS_STATUS" == "ok" ]; then
Expand Down

0 comments on commit a7246a6

Please sign in to comment.