Commit Graph
6 Commits
Author SHA1 Message Date
Damien Lespiau 6c462aefa6 contrib/kube-prometheus: Bump the prometheus-operator jsonnet dep
kube-prometheus now contains a script, sync-to-internal-registry.jsonnet, that
depends on commit 8c6a68760010347134e41f3aa3d73c68eb094a1b to work. Bump the
prometheus-operator hash accordingly.
2018-10-16 14:29:05 +01:00
Damien Lespiau c096a8fac8 kube-prometheus: Update kube-prometheus vendoring 2018-10-16 12:00:31 +01:00
Damien Lespiau 33e4ff2134 contrib/kube-prometheus: Document the internal registry support 2018-10-16 11:59:31 +01:00
Damien Lespiau 253abe0f96 contrib/kube-prometheus: Introduce a withImageRepository mixin
This mixin replaces all images prefixes by $repository to generate manifests
that will point to an internal registry.
2018-10-16 11:59:31 +01:00
Damien Lespiau 466cbe50b0 contrib/kube-prometheus: Add a script to sync images to an internal registry
Crazy at it sounds, some Kubernetes installations don't have access to Internet
and source all their images from an internal registry.

sync-to-internal-registry.jsonnet is a jsonnet snippet that helps with the task
of pushing upstream images used by the prometheus operator to an internal
registry by printing the right docker pull/tag/push commands.

$ jsonnet -J vendor -S --tla-str repository=internal-registry.com/organization sync-to-internal-registry.jsonnet
docker pull quay.io/coreos/addon-resizer:1.0
docker tag quay.io/coreos/addon-resizer:1.0 internal-registry.com/organization/addon-resizer:1.0
docker push internal-registry.com/organization/addon-resizer:1.0
docker pull quay.io/prometheus/alertmanager:v0.15.2
docker tag quay.io/prometheus/alertmanager:v0.15.2 internal-registry.com/organization/alertmanager:v0.15.2
docker push internal-registry.com/organization/alertmanager:v0.15.2
...
2018-10-16 11:59:31 +01:00
Damien Lespiau 345f045739 contrib/kube-prometheus: Update README with up-to-date default versions
With those changes, diff does show any differences between generated manifests
with and without the version override in a top level jsonnet file.
2018-09-19 11:58:06 +01:00