Skip to content
Permalink
Browse files

Migrate couchdb-prometheus-exporter to GCR.

I upgraded the couchdb-prometheus-exporter image to :22 rather than continuing to point to a
checksum. (We still use the checksum calculated from the tag when deploying.)
  • Loading branch information...
mrtyler committed Apr 5, 2019
1 parent c406e0e commit 97514a2462f8b473de53563a5aafdd0da66d14b7
@@ -4,6 +4,10 @@ terraform {

variable "secrets_dir" {}
variable "charts_dir" {}
variable "couchdb_prometheus_exporter_repository" {}
variable "couchdb_prometheus_exporter_checksum" {}
variable "couchdb_prometheus_exporter_p2sd_repository" {}
variable "couchdb_prometheus_exporter_p2sd_tag" {}

variable "replica_count" {
default = "1"
@@ -18,9 +22,13 @@ data "template_file" "couchdb_prometheus_exporter_values" {
template = "${file("values.yaml")}"

vars {
couchdb_admin_username = "${var.secret_couchdb_admin_username}"
couchdb_admin_password = "${var.secret_couchdb_admin_password}"
replica_count = "${var.replica_count}"
couchdb_admin_username = "${var.secret_couchdb_admin_username}"
couchdb_admin_password = "${var.secret_couchdb_admin_password}"
couchdb_prometheus_exporter_repository = "${var.couchdb_prometheus_exporter_repository}"
couchdb_prometheus_exporter_checksum = "${var.couchdb_prometheus_exporter_checksum}"
couchdb_prometheus_exporter_p2sd_repository = "${var.couchdb_prometheus_exporter_p2sd_repository}"
couchdb_prometheus_exporter_p2sd_tag = "${var.couchdb_prometheus_exporter_p2sd_tag}"
replica_count = "${var.replica_count}"
}
}

@@ -3,3 +3,10 @@ replicaCount: ${replica_count}
couchdbUri: http://couchdb-svc-couchdb.gpii.svc.cluster.local:5984
couchdbUsername: ${couchdb_admin_username}
couchdbPassword: ${couchdb_admin_password}

image:
repository: ${couchdb_prometheus_exporter_repository}
checksum: ${couchdb_prometheus_exporter_checksum}
prometheusToSdExporter:
repository: ${couchdb_prometheus_exporter_p2sd_repository}
tag: ${couchdb_prometheus_exporter_p2sd_tag}
@@ -4,6 +4,16 @@ couchdb_helper:
image: gcr.io/gpii2test-common-stg/kocolosk/couchdb-statefulset-assembler
sha: sha256:a689a5cde2c19b7767c79fc2d265844bbc5913f10f5516480d7e06e2292f234e
tag: 1.1.0
couchdb_prometheus_exporter:
upstream_image: gesellix/couchdb-prometheus-exporter:22
image: gcr.io/gpii2test-common-stg/gesellix/couchdb-prometheus-exporter
sha: sha256:8184086713d28fc19f3d2ecd5eabd0cce23c21bd0daa9f8921fa0ce4acb912f6
tag: '22'
couchdb_prometheus_exporter_p2sd:
upstream_image: gcr.io/google-containers/prometheus-to-sd:v0.3.2
image: gcr.io/gpii2test-common-stg/gcr.io/google-containers/prometheus-to-sd
sha: sha256:7f7e424211b64a77b5ee2e8a3085048b54c1676217ee8830dc4112df6111b8a2
tag: v0.3.2
couchdb:
upstream_image: couchdb:2.2.0
image: gcr.io/gpii2test-common-stg/couchdb

0 comments on commit 97514a2

Please sign in to comment.
You can’t perform that action at this time.