Actions
Documentation #52797
open[cephadm]use mirrors for service images (grafana, prometheus ...)
Status:
New
Priority:
Normal
Assignee:
-
Category:
container tools
Target version:
-
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
It was difficult to find the way to use alternate images for services.
At first I tried registry-mirrors in /etc/docker/daemon.json but it works only for docker.io, but not quay.io.
Then I finally tried with success the method described in https://tracker.ceph.com/issues/46561
Mirrors are hosted in a Sonatype Nexus OSS in https:- The docker.io mirror is listening on port 18079.
- The quay.io mirror is listening on port 18080.
During deployment I used:
export CEPHADM_IMAGE='myrepo:18080/ceph/ceph:v16'
cephadm bootstrap \
--mon-ip 192.168.25.5 \
--ssh-private-key /home/cephadm/.ssh/id_rsa \
--ssh-public-key /home/cephadm/.ssh/id_rsa.pub \
--ssh-user cephadm
ceph config set mgr mgr/cephadm/container_image_prometheus myrepo:18080/prometheus/prometheus:v2.18.1
ceph config set mgr mgr/cephadm/container_image_node_exporter myrepo:18080/node-exporter:v0.18.1
ceph config set mgr mgr/cephadm/container_image_alertmanager myrepo:18080/prometheus/alertmanager:v0.20.0
ceph config set mgr mgr/cephadm/container_image_grafana myrepo:18080/ceph/ceph-grafana:6.7.4
ceph config set mgr mgr/cephadm/container_image_haproxy myrepo:18079/library/haproxy:2.3
ceph config set mgr mgr/cephadm/container_image_keepalived myrepo:18079/arcts/keepalived
It worked for me but is it the correct way to do it ? If so, a reference can be added in documentation.
Updated by Sebastian Wagner over 2 years ago
- Related to Bug #46561: cephadm: monitoring services adoption doesn't honor the container image added
Updated by Sebastian Wagner over 2 years ago
- Related to Documentation #53871: Can't pull the Ingress daemon due to docker.io rate limit added
Actions